Sfoglia il codice sorgente

closes https://github.com/gilbitron/Pico/issues/67

Roman Shvets 12 anni fa
parent
commit
b4123c222c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/pico.php

+ 1 - 1
lib/pico.php

@@ -151,7 +151,7 @@ class Pico {
 	 */
 	 */
 	private function parse_content($content)
 	private function parse_content($content)
 	{
 	{
-		$content = preg_replace('#/\*.+?\*/#s', '', $content); // Remove comments and meta
+		$content = preg_replace('#^/\*.+?\*/#s', '', $content); // 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);