From f282b462bb81b271604c533ea176a1e6fde52b12 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 31 Jan 2011 20:05:11 -0800 Subject: Markdown reader: Fixed whitespace footnote bug (Jesse Rosenthal). The problem was in input like this: [^1]: note not in note. Also added a test case for this. --- src/Tests/Readers/Markdown.hs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Tests') diff --git a/src/Tests/Readers/Markdown.hs b/src/Tests/Readers/Markdown.hs index 722a45bdb..021ef7fa5 100644 --- a/src/Tests/Readers/Markdown.hs +++ b/src/Tests/Readers/Markdown.hs @@ -26,4 +26,14 @@ tests = [ testGroup "inline code" "`*` {.haskell .special x=\"7\"}" =?> para (codeWith ("",["haskell","special"],[("x","7")]) "*") ] + , testGroup "footnotes" + [ "indent followed by newline" =: [_LIT| +[^1] + +[^1]: my note + + +not in note +|] =?> para (note (para "my note")) +++ para "not in note" + ] ] -- cgit v1.2.3