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

pico-3.0-alpha
Christopher 12 years ago
parent aa59661ff8
commit b136780988
  1. 2
      lib/pico.php

@ -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…
Cancel
Save