HTML blocks don’t need to be separated by a blank line to with Markdown.pl, PHP Markdown should work the same.

This commit is contained in:
Michel Fortin 2014-05-04 19:15:28 -04:00
parent fa9d0bce17
commit de359a30d5

View file

@ -297,9 +297,9 @@ class Markdown implements MarkdownInterface {
# match will start at the first `<div>` and stop at the first `</div>`.
$text = preg_replace_callback('{(?>
(?>
(?<=\n\n) # Starting after a blank line
(?<=\n) # Starting on its own line
| # or
\A\n? # the beginning of the doc
\A\n? # the at beginning of the doc
)
( # save in $1