Skip to content

Commit

Permalink
Merge pull request #37 from ghLoser/patch-2
Browse files Browse the repository at this point in the history
Update Markdown.php - Looks good! thanks.
  • Loading branch information
rhukster committed Aug 27, 2014
2 parents 8f9780a + 3c1673d commit ad5d9eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Filesystem/File/Markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected function decode($var)
$var = preg_replace("/(\r\n|\r)/", "\n", $var);

// Parse header.
preg_match("/---\n(.+?)\n---(\n\n|$)/uism", $this->raw(), $m);
preg_match("/---\n(.+?)\n---(\n\n|$)/uism", $var, $m);
$content['header'] = isset($m[1]) ? YamlParser::parse(preg_replace("/\n\t/", "\n ", $m[1])) : array();

// Strip header to get content.
Expand Down

0 comments on commit ad5d9eb

Please sign in to comment.