aboutsummaryrefslogtreecommitdiff
path: root/test/writer.man
AgeCommit message (Collapse)AuthorFilesLines
2019-09-23Man writer: suppress non-absolute link URLs.John MacFarlane1-22/+22
Motivation: in a man page there's not much use for relative URLs, which you can't follow. Absolute URLs are still useful. We previously suppressed relative URLs starting with '#' (purely internal links), but it makes sense to go a bit farther. Closes #5770.
2019-07-13Man writer: Improved definition list term output.John MacFarlane1-17/+17
Now we boldface code but not other things. This matches the most common style in man pages (particularly option lists). Also, remove a regression in the last commit in which 'nowrap' was removed.
2019-07-13Man writer: fixed boldfacing of definition terms.John MacFarlane1-17/+17
Previously the bold-facing would be interrupted by other formatting, because we used `.B`. Closes #5620.
2018-12-13Man/Ms writers: don't escape `-` as `\-`.John MacFarlane1-10/+10
For discussion see https://groups.google.com/forum/#!msg/pandoc-discuss/B-oiCXcQOVo/WO-BXVpICAAJ The `\-` gets rendered in HTML and PDF as a unicode minus sign.
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