Updated Markdown extension, experimental

This commit is contained in:
markseu 2019-05-29 15:56:45 +02:00
parent 15c9c37539
commit 54b112f45b

View file

@ -3917,9 +3917,13 @@ class YellowMarkdownExtraParser extends MarkdownExtraParser {
$level = strspn(str_replace(array(" ", "!["), "", $lines), "!");
$attr = " class=\"notice$level\"";
}
++$this->noticeLevel;
$output = "<div$attr>\n".$this->runBlockGamut($text)."\n</div>";
--$this->noticeLevel;
if (!empty($text)) {
++$this->noticeLevel;
$output = "<div$attr>\n".$this->runBlockGamut($text)."\n</div>";
--$this->noticeLevel;
} else {
$output = "<div$attr></div>";
}
return "\n".$this->hashBlock($output)."\n\n";
}