diff --git a/Michelf/Markdown.php b/Michelf/Markdown.php index 3e69928..197402c 100644 --- a/Michelf/Markdown.php +++ b/Michelf/Markdown.php @@ -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 )*