Link reference following a footnote definition without a separating blank line gets swallowed as text in the footnote.

Fixes #123.
This commit is contained in:
Michel Fortin 2014-05-04 21:07:24 -04:00
parent de989d7c21
commit 92c726ac67

View file

@ -2909,7 +2909,7 @@ abstract class _MarkdownExtra_TmpImpl extends \Michelf\Markdown {
.+ # actual text
|
\n # newlines but
(?!\[\^.+?\]:\s)# negative lookahead for footnote marker.
(?!\[.+?\][ ]?:\s)# negative lookahead for footnote or link definition marker.
(?!\n+[ ]{0,3}\S)# ensure line is not blank and followed
# by non-indented content
)*