mikuli.cz

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

commit 0fb6ba1b16903da6fb8a96a9e3a57dd1025c0401
parent bfe60ffec746e2418d3374b2a7cb8222225be9bf
Author: markseu <mark2011@mayberg.se>
Date:   Wed,  5 Aug 2015 15:21:12 +0200

Core update (Markdown)

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

diff --git a/system/plugins/markdown.php b/system/plugins/markdown.php @@ -101,10 +101,11 @@ class YellowMarkdownParser extends MarkdownExtraParser function _doFencedCodeBlocks_callback($matches) { $text = $matches[4]; - if(!empty($matches[2])) $output = $this->page->parseContentBlock($matches[2]." ".$matches[3], $text, false); + $name = empty($matches[2]) ? "" : "$matches[2] $matches[3]"; + $output = $this->page->parseContentBlock($name, $text, false); if(is_null($output)) { - $attr = $this->doExtraAttributes("pre", $dummy =& $matches[3]); + $attr = $this->doExtraAttributes("pre", ".$matches[2] $matches[3]"); $output = "<pre$attr><code>".htmlspecialchars($text, ENT_NOQUOTES)."</code></pre>"; } return "\n\n".$this->hashBlock($output)."\n\n";