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:
parent
fa9d0bce17
commit
de359a30d5
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue