aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers/Man.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-20 15:57:34 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-20 15:57:34 -0700
commita9fc71118fead17f2dfd122e60f0131efd2e21ea (patch)
tree0936b8fb4c25ce269729a0eb8254411e9c445596 /test/Tests/Readers/Man.hs
parentf3954553a4deea8bac47be3f2dedeceaf5fa55b7 (diff)
downloadpandoc-a9fc71118fead17f2dfd122e60f0131efd2e21ea.tar.gz
Man reader: major restructuring, support macros.
- Improved support for custom macro definitions. - LinePart type has been added. RoffStr is now one constructor of LinePart (the other being MacroArg). - MComment has lost its argument. - MEndMacro has been removed. - MStr has been removed (we now simply use LinePart). - Macros now store a list of tokens. - Each macro argument is a [LinePart], instead of a LinePart. - .BR now behaves as documented in man (and doesn't create a link).
Diffstat (limited to 'test/Tests/Readers/Man.hs')
-rw-r--r--test/Tests/Readers/Man.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Tests/Readers/Man.hs b/test/Tests/Readers/Man.hs
index 5368ce542..d45c69705 100644
--- a/test/Tests/Readers/Man.hs
+++ b/test/Tests/Readers/Man.hs
@@ -24,13 +24,13 @@ tests = [
testGroup "Macros" [
"Bold" =:
".B foo"
- =?> (para $ strong "foo")
+ =?> para (strong "foo")
, "Italic" =:
".I bar\n"
- =?> (para $ emph "bar")
+ =?> para (emph "bar")
, "BoldItalic" =:
".BI foo bar"
- =?> (para $ strong $ emph $ text "foo bar")
+ =?> para (strong (str "foo") <> emph (str "bar"))
, "H1" =:
".SH The header\n"
=?> header 1 (text "The header")
@@ -45,7 +45,7 @@ tests = [
=?> (para $ str "aaa")
, "link" =:
".BR aa (1)"
- =?> (para $ link "../1/aa.1" "aa" (strong $ str "aa") <> (strong $ str " (1)"))
+ =?> para (text "aa(1)")
],
testGroup "Escapes" [
"fonts" =: