pandoc/test/command/3568.md
John MacFarlane f48960b75f Move common groff functions to Text.Pandoc.Writers.Groff
(unexported module).  These are used in both the man and ms
writers.

Moved groffEscape out of Text.Pandoc.Writers.Shared [cancels earlier
API change from adding it, which was after last release].

This fixes strong/code combination on man (should be `\f[CB]` not
`\f[BC]`), mentioned in #4973.

Updated tests.

Closes #4975.
2018-10-17 17:26:37 -07:00

16 lines
323 B
Markdown

```
% 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[R]
normal.
.PP
normal \f[B]bold \f[CB]code\f[B] more bold\f[R] normal.
.PP
normal \f[C]code\f[R] normal.
```