aboutsummaryrefslogtreecommitdiff
path: root/test/writer.man
AgeCommit message (Collapse)AuthorFilesLines
2018-10-23Groff writer character escaping changes.John MacFarlane1-3/+3
T.P.GroffChar: replaced `essentialEscapes` with `manEscapes`, which includes all the escapes mentioned in the groff_man manual. T.P.Writers.Groff: removed escapeCode; changed parameter on escapeString from Bool to new type `EscapeMode`. Rewrote `escapeString`.
2018-10-22Groff writers escaping changes.John MacFarlane1-16/+16
- Improve escaping of accented characters with `--ascii`. Combining accents are now handled properly. - Don't escape spaces and tabs in code blocks. This doesn't seem to be necessary.
2018-10-19Man writer: avoid unnecessary `.RS`/`.RE` pair in defn lists.John MacFarlane1-38/+0
When the definition is just one paragraph, we don't need the `.RS\n.RE`.
2018-10-18GroffChar: fixed interpretation of `\-`.John MacFarlane1-10/+10
It is the ascii - sign, not the unicode hyphen.
2018-10-18Groff escaping changes.John MacFarlane1-14/+14
- `--ascii` is now turned on automatically for man output, for portability. All man output will be escaped to ASCII. - In T.P.Writers.Groff, `escapeChar`, `escapeString`, and `escapeCode` now take a boolean parameter that selects ascii-only output. This is used by the Ms writer for `--ascii`, instead of doing an extra pass after writing the document. - In ms output without `--ascii`, unicode is used whenever possible (e.g. for double quotes). - A few escapes are changed: e.g. `\[rs]` instead of `\\` for backslash, and `\ga]` instead of `` \` `` for backtick.
2018-10-17Move common groff functions to Text.Pandoc.Writers.GroffJohn MacFarlane1-37/+38
(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-17Man writer: use \f[R] instead of \f[] to reset fontAlexander Krotov1-41/+41
Fixes #4973
2017-05-25Added `spaced_reference_links` extension.John MacFarlane1-4/+0
This is now the default for pandoc's Markdown. It allows whitespace between the two parts of a reference link: e.g. [a] [b] [b]: url This is now forbidden by default. Closes #2602.
2017-04-12Man writer: Fix handling of nested font commands.John MacFarlane1-4/+4
Previously pandoc emitted incorrect markup for bold + italic, for example, or bold + code. Closes #3568.
2017-02-04Moved tests/ -> test/.John MacFarlane1-0/+795