diff --git a/Michelf/MarkdownExtra.php b/Michelf/MarkdownExtra.php index 9b47a26..ac6b1b4 100644 --- a/Michelf/MarkdownExtra.php +++ b/Michelf/MarkdownExtra.php @@ -466,7 +466,7 @@ class MarkdownExtra extends \Michelf\Markdown { // after each newline to prevent triggering any block element. if ($span) { $void = $this->hashPart("", ':'); - $newline = "$void\n"; + $newline = "\n$void"; $parts[0] = $void . str_replace("\n", $newline, $parts[0]) . $void; } diff --git a/Readme.md b/Readme.md index fd8809f..e2f6384 100644 --- a/Readme.md +++ b/Readme.md @@ -192,6 +192,10 @@ Current Version: code block equivalent, there is no syntax for specifying a language. Credits to styxit for the implementation. +* Fixed a Markdwon Extra issue where two-space-at-end-of-line hard breaks + wouldn't work inside of HTML block elements such as `

` + where the element expects only span-level content. + * In the parser code, switched to PHPDoc comment format. Thanks to Robbie Averill for the help.