From 6018a2324d4eddc3844aa4c00b17294e85003750 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Tue, 14 Nov 2017 22:34:47 +0300 Subject: Muse reader: Add Text::Amuse footnote extensions Footnote end is indicated by indentation, so footnotes can be placed anywhere in the text, not just at the end of it. --- test/Tests/Readers/Muse.hs | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'test') diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs index b4e5dd05e..a9aa4cf12 100644 --- a/test/Tests/Readers/Muse.hs +++ b/test/Tests/Readers/Muse.hs @@ -377,6 +377,43 @@ tests = ] =?> para (text "Start recursion here" <> note (para "Recursion continues here[1]")) + , testGroup "Multiparagraph footnotes" + [ "Amusewiki multiparagraph footnotes" =: + T.unlines [ "Multiparagraph[1] footnotes[2]" + , "" + , "[1] First footnote paragraph" + , "" + , " Second footnote paragraph" + , "Not a note" + , "[2] Second footnote" + ] =?> + para (text "Multiparagraph" <> + note (para "First footnote paragraph" <> + para "Second footnote paragraph") <> + text " footnotes" <> + note (para "Second footnote")) <> + para (text "Not a note") + , test emacsMuse "Emacs multiparagraph footnotes" + (T.unlines + [ "First footnote reference[1] and second footnote reference[2]." + , "" + , "[1] First footnote paragraph" + , "" + , "Second footnote" + , "paragraph" + , "" + , "[2] Third footnote paragraph" + , "" + , "Fourth footnote paragraph" + ] =?> + para (text "First footnote reference" <> + note (para "First footnote paragraph" <> + para "Second footnote paragraph") <> + text " and second footnote reference" <> + note (para "Third footnote paragraph" <> + para "Fourth footnote paragraph") <> + text ".")) + ] ] ] , testGroup "Tables" -- cgit v1.2.3