mikuli.cz

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

commit 1bd30f4150e93fe67ae43001c3b0a1c4ddf76991
parent b6543af5ef60d12b36ef0dafe71168e1c9ae347a
Author: markseu <mark2011@mayberg.se>
Date:   Wed,  3 Jun 2015 14:02:32 +0200

Core update (Markdown)

Diffstat:
Msystem/plugins/markdown.php | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/system/plugins/markdown.php b/system/plugins/markdown.php @@ -5,7 +5,7 @@ // Markdown plugin class YellowMarkdown { - const Version = "0.5.4"; + const Version = "0.5.5"; var $yellow; //access to API // Handle initialisation @@ -100,8 +100,9 @@ class YellowMarkdownParser extends MarkdownExtraParser // Handle fenced code blocks function _doFencedCodeBlocks_callback($matches) { + $name = trim($matches[2]." ".$matches[3]); $text = $matches[4]; - $output = $this->page->parseContentBlock($matches[2], $text, false); + $output = $this->page->parseContentBlock($name, $text, false); if(is_null($output)) { $attr = $this->doExtraAttributes("pre", $dummy =& $matches[3]); @@ -113,7 +114,7 @@ class YellowMarkdownParser extends MarkdownExtraParser // Handle headers, text style function _doHeaders_callback_setext($matches) { - if ($matches[3] == '-' && preg_match('{^- }', $matches[1])) return $matches[0]; + if($matches[3] == '-' && preg_match('{^- }', $matches[1])) return $matches[0]; $text = $matches[1]; $level = $matches[3]{0} == '=' ? 1 : 2; $attr = $this->doExtraAttributes("h$level", $dummy =& $matches[2]);