Dont remove all comments from *.md. Only first one (other may be code)
This commit is contained in:
parent
aa59661ff8
commit
b136780988
@ -136,7 +136,7 @@ class Pico {
|
|||||||
*/
|
*/
|
||||||
protected function parse_content($content)
|
protected function parse_content($content)
|
||||||
{
|
{
|
||||||
$content = preg_replace('#/\*.+?\*/#s', '', $content); // Remove comments and meta
|
$content = preg_replace('#/\*.+?\*/#s', '', $content, 1); // Remove comments and meta
|
||||||
$content = str_replace('%base_url%', $this->base_url(), $content);
|
$content = str_replace('%base_url%', $this->base_url(), $content);
|
||||||
$content = MarkdownExtra::defaultTransform($content);
|
$content = MarkdownExtra::defaultTransform($content);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user