diff options
author | Alexander Krotov <ilabdsf@gmail.com> | 2017-09-28 14:47:07 +0300 |
---|---|---|
committer | Alexander Krotov <ilabdsf@gmail.com> | 2017-09-28 14:57:24 +0300 |
commit | b5d064e8f08db27f3f9aa7287edd7a777be57594 (patch) | |
tree | e91e88a655080dca89fa9c471df2111eba061173 /test | |
parent | e38c0230074e9224638462cdc8a79b9992467392 (diff) | |
download | pandoc-b5d064e8f08db27f3f9aa7287edd7a777be57594.tar.gz |
Muse reader: parse anchors
Diffstat (limited to 'test')
-rw-r--r-- | test/Tests/Readers/Muse.hs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs index 3088f88b3..f89c58d3f 100644 --- a/test/Tests/Readers/Muse.hs +++ b/test/Tests/Readers/Muse.hs @@ -344,6 +344,26 @@ tests = ] =?> blockQuote (para "* Hi") ] + , testGroup "Anchors" + [ "Anchor" =: + T.unlines [ "; A comment to make sure anchor is not parsed as a directive" + , "#anchor Target" + ] =?> + para (spanWith ("anchor", [], []) mempty <> "Target") + , "Anchor cannot start with a number" =: + T.unlines [ "; A comment to make sure anchor is not parsed as a directive" + , "#0notanchor Target" + ] =?> + para "#0notanchor Target" + , "Not anchor if starts with a space" =: + " #notanchor Target" =?> + para "#notanchor Target" + , "Anchor inside a paragraph" =: + T.unlines [ "Paragraph starts here" + , "#anchor and ends here." + ] =?> + para ("Paragraph starts here " <> spanWith ("anchor", [], []) mempty <> "and ends here.") + ] , testGroup "Footnotes" [ "Simple footnote" =: T.unlines [ "Here is a footnote[1]." |