Dont remove all comments from *.md. Only first one (other may be code)
This commit is contained in:
parent
aa59661ff8
commit
b136780988
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ class Pico {
|
|||
*/
|
||||
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 = MarkdownExtra::defaultTransform($content);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue