diff --git a/lib/marked.js b/lib/marked.js index 272e9d4511..cbf900e058 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -98,7 +98,7 @@ block.tables = { * Footnotes Block Grammar */ block.footnotes = { - footnote: /^\[(\^[^\]]+)\]: *([^\n]*(?:\n [^\n]*)*)/, + footnote: /^\[\^([^\]]+)\]: *([^\n]*(?:\n+|$)(?: {1,}[^\n]*(?:\n+|$))*)/ }; block.footnotes.normal = { footnote: block.footnotes.footnote