commit 727d80a74f845269c7364778c52bfe01ec1e9a98
parent 84ebcd97c3233d06368f3f05c60473820b448d81
Author: markseu <mark2011@mayberg.se>
Date: Thu, 4 Jun 2020 13:44:46 +0200
Updated markdown extension
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/system/extensions/markdown.php b/system/extensions/markdown.php
@@ -4,7 +4,7 @@
// This file may be used and distributed under the terms of the public license.
class YellowMarkdown {
- const VERSION = "0.8.12";
+ const VERSION = "0.8.13";
const TYPE = "feature";
public $yellow; //access to API
@@ -3913,7 +3913,7 @@ class YellowMarkdownParser extends MarkdownExtraParser {
// Handle fenced code blocks
public function _doFencedCodeBlocks_callback($matches) {
$text = $matches[4];
- $name = empty($matches[2]) ? "" : "$matches[2] $matches[3]";
+ $name = empty($matches[2]) ? "" : trim("$matches[2] $matches[3]");
$output = $this->page->parseContentShortcut($name, $text, "code");
if (is_null($output)) {
$attr = $this->doExtraAttributes("pre", ".$matches[2] $matches[3]");