From 875e33ecf698396418d722d77f74cf07835058d2 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Mon, 22 Oct 2018 03:03:11 +0300 Subject: Muse reader: allow footnotes to start with empty line A space character was required after footnote marker, now newline is allowed. --- test/Tests/Readers/Muse.hs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test/Tests') diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs index ab0579519..36724b33c 100644 --- a/test/Tests/Readers/Muse.hs +++ b/test/Tests/Readers/Muse.hs @@ -797,6 +797,23 @@ tests = , "baz" ] =?> para (str "Foo" <> note (lineBlock ["bar"])) <> para (str "baz") + + , "Footnote starting with empty line" =: + T.unlines [ "Foo[1]" + , "" + , "[1]" -- No space character after note marker + , "" + , " Bar" + ] =?> + para (str "Foo" <> note (para $ text "Bar")) + , "Indentation in footnote starting with empty line" =: + T.unlines [ "Foo[1]" + , "" + , "[1]" -- No space character after note marker + , "" + , " Bar" + ] =?> + para (str "Foo" <> note mempty) <> blockQuote (para $ text "Bar") , test emacsMuse "Emacs multiparagraph footnotes" (T.unlines [ "First footnote reference[1] and second footnote reference[2]." -- cgit v1.2.3