aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-11-02 21:35:49 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-11-02 21:35:49 -0700
commit805b9f8a1238288ee094b8593cdb24e24636f01d (patch)
tree2c3d999e9dfaac51f88974f51d7fcbf342c7879f /test/command
parente95aeeafb89eed801c574aeafc05d9eeaff1bd0f (diff)
downloadpandoc-805b9f8a1238288ee094b8593cdb24e24636f01d.tar.gz
Roff reader: Improved handling of custom strings as arguments.
Added test.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/5039.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/command/5039.md b/test/command/5039.md
new file mode 100644
index 000000000..651a023b7
--- /dev/null
+++ b/test/command/5039.md
@@ -0,0 +1,27 @@
+```
+% pandoc -f man -t plain
+.ds foo bar
+.ds bar baz
+\*[\*[foo]]
+^D
+baz
+```
+
+```
+% pandoc -f man -t plain
+.ds foo [bar]
+.ds bar baz
+\*\*[foo]
+^D
+baz
+```
+
+```
+% pandoc -f man -t html
+.ds B-Font B
+.ds I-Font I
+.ds R-Font R
+\f\*[B-Font]certtool\fP
+^D
+<p><strong>certtool</strong></p>
+```