From 31a36cf186353dd7c18533b42a88424145b12dcc Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 12 Apr 2017 12:22:25 +0200 Subject: Man writer: Fix handling of nested font commands. Previously pandoc emitted incorrect markup for bold + italic, for example, or bold + code. Closes #3568. --- test/command/3568.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/command/3568.md (limited to 'test/command') 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. +``` -- cgit v1.2.3