Dont remove all comments from *.md. Only first one (other may be code)

This commit is contained in:
Christopher 2013-11-01 01:37:20 +04:00
parent aa59661ff8
commit b136780988

View file

@ -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);