From 3480a8acc24c650bc208b2e6cc8f1d5ac2e04aa5 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Mon, 12 Feb 2018 04:25:13 +0300 Subject: Muse reader: paragraph indentation does not indicate nested quote Muse allows indentation to indicate quotation or alignment, but only on the top level, not within a or list. This patch also simplifies the code by removing museInQuote and museInList fields from the state structure. Headers and indented paragraphs are attempted to be parsed only at the topmost level, instead of aborting parsing with guards. --- test/Tests/Readers/Muse.hs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs index 520de0eb7..60059df77 100644 --- a/test/Tests/Readers/Muse.hs +++ b/test/Tests/Readers/Muse.hs @@ -252,6 +252,12 @@ tests = , "Quote" =: " This is a quotation\n" =?> blockQuote (para "This is a quotation") + , "Indentation does not indicate quote inside quote tag" =: + T.unlines [ "" + , " Not a nested quote" + , "" + ] =?> + blockQuote (para "Not a nested quote") , "Multiline quote" =: T.unlines [ " This is a quotation" , " with a continuation" -- cgit v1.2.3