mikuli.cz

:)
git clone https://git.sr.ht/~ashymad/mikuli.cz
Log | Files | Refs

commit 1368f17057f6571818d2477a59dcc3e08b25c05e
parent 7d9abc728c303d988b4c41d7e9f5141f78a3eac0
Author: markseu <mark2011@mayberg.se>
Date:   Thu, 20 Jan 2022 17:17:58 +0100

Updated Markdown, CommonMark compatible quotes

Diffstat:
Msystem/extensions/markdown.php | 7++++++-
Msystem/extensions/update-current.ini | 4++--
2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/system/extensions/markdown.php b/system/extensions/markdown.php @@ -2,7 +2,7 @@ // Markdown extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/markdown class YellowMarkdown { - const VERSION = "0.8.17"; + const VERSION = "0.8.18"; public $yellow; // access to API // Handle initialisation @@ -3994,6 +3994,11 @@ class YellowMarkdownParser extends MarkdownExtraParser { return "<li$attr>".$item."</li>\n"; } + // Handle blockquotes, CommonMark compatible + public function doBlockQuotes($text) { + return preg_replace_callback("/((?>^[ ]*>[ ]?.+\n(.+\n)*)+)/m", array($this, "_doBlockQuotes_callback"), $text); + } + // Handle notice blocks public function doNoticeBlocks($text) { return preg_replace_callback("/((?>^[ ]*!(?!\[)[ ]?.+\n(.+\n)*)+)/m", array($this, "_doNoticeBlocks_callback"), $text); diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini @@ -86,11 +86,11 @@ media/downloads/yellow.pdf: yellow.pdf, create ./robots.txt: robots.txt, create Extension: Markdown -Version: 0.8.17 +Version: 0.8.18 Description: Text formatting for humans. HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/markdown DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/markdown.zip -Published: 2021-03-13 18:49:28 +Published: 2022-01-20 17:14:22 Developer: Datenstrom Tag: feature system/extensions/markdown.php: markdown.php, create, update