diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-10-20 15:57:34 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-10-20 15:57:34 -0700 |
commit | a9fc71118fead17f2dfd122e60f0131efd2e21ea (patch) | |
tree | 0936b8fb4c25ce269729a0eb8254411e9c445596 /test/Tests | |
parent | f3954553a4deea8bac47be3f2dedeceaf5fa55b7 (diff) | |
download | pandoc-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')
-rw-r--r-- | test/Tests/Readers/Man.hs | 8 |
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" =: |