aboutsummaryrefslogtreecommitdiff
path: root/test/command/3568.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-04-12 12:22:25 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-04-12 12:23:29 +0200
commit31a36cf186353dd7c18533b42a88424145b12dcc (patch)
tree6bd56177689a6169607b824670793e8f214cac55 /test/command/3568.md
parent7e3705c1c4a7b63ce6818c1e3cb3496ff618ac0f (diff)
downloadpandoc-31a36cf186353dd7c18533b42a88424145b12dcc.tar.gz
Man writer: Fix handling of nested font commands.
Previously pandoc emitted incorrect markup for bold + italic, for example, or bold + code. Closes #3568.
Diffstat (limited to 'test/command/3568.md')
-rw-r--r--test/command/3568.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/command/3568.md b/test/command/3568.md
new file mode 100644
index 000000000..e77c27b78
--- /dev/null
+++ b/test/command/3568.md
@@ -0,0 +1,15 @@
+```
+% pandoc -t man
+normal *italic **bold in the middle** only italic* normal.
+
+normal **bold `code` more bold** normal.
+
+normal `code` normal.
+^D
+.PP
+normal \f[I]italic \f[BI]bold in the middle\f[I] only italic\f[] normal.
+.PP
+normal \f[B]bold \f[BC]code\f[B] more bold\f[] normal.
+.PP
+normal \f[C]code\f[] normal.
+```