mikuli.cz

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

commit f9f60b8a949ad0820e032f84fde3faf873e0b2c6
parent 7025b061f0c5229136141cc70f9b9ec0578ef82e
Author: markseu <mark2011@mayberg.se>
Date:   Wed, 24 Aug 2022 21:52:50 +0200

Updated Markdown, better shortcut parsing

Diffstat:
Msystem/extensions/markdown.php | 4++--
Msystem/extensions/update-current.ini | 4++--
2 files changed, 4 insertions(+), 4 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.21"; + const VERSION = "0.8.22"; public $yellow; // access to API // Handle initialisation @@ -3875,7 +3875,7 @@ class YellowMarkdownParser extends MarkdownExtraParser { public function doAutoLinks($text) { $text = preg_replace_callback("/<(\w+:[^\'\">\s]+)>/", array($this, "_doAutoLinks_url_callback"), $text); $text = preg_replace_callback("/<([\w\+\-\.]+@[\w\-\.]+)>/", array($this, "_doAutoLinks_email_callback"), $text); - $text = preg_replace_callback("/^\s*\[(\w+)(.*?)\]\s*$/", array($this, "_doAutoLinks_shortcutBlock_callback"), $text); + $text = preg_replace_callback("/^\s*\[(\w+)([^\]]*)\]\s*$/", array($this, "_doAutoLinks_shortcutBlock_callback"), $text); $text = preg_replace_callback("/\[(\w+)(.*?)\]/", array($this, "_doAutoLinks_shortcutInline_callback"), $text); $text = preg_replace_callback("/\[\-\-(.*?)\-\-\]/", array($this, "_doAutoLinks_shortcutComment_callback"), $text); $text = preg_replace_callback("/\:([\w\+\-\_]+)\:/", array($this, "_doAutoLinks_shortcutSymbol_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.21 +Version: 0.8.22 Description: Text formatting for humans. DocumentationUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/markdown DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/markdown.zip -Published: 2022-05-08 11:54:07 +Published: 2022-08-24 21:47:46 Developer: Datenstrom Tag: feature system/extensions/markdown.php: markdown.php, create, update