aboutsummaryrefslogtreecommitdiff
path: root/test/tables.ms
AgeCommit message (Collapse)AuthorFilesLines
2018-10-18Groff escaping changes.John MacFarlane1-4/+4
- `--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-4/+4
(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-04-21Markdown reader/writer: spacing adjustments in tables.John MacFarlane1-3/+3
* Markdown writer now includes a blank line at the end of the row in a single-row multiline table, to prevent it from being interpreted as a simple table. Closes #4578. * Markdown reader does a better job computing the relative width of the last column in a multiline table, so we can round-trip tables without constantly shrinking the last column.
2018-04-14Man writer: Don't escape U+2019 as '.John MacFarlane1-4/+4
Closes #4550.
2017-04-05Ms writer: respect text wrapping options.John MacFarlane1-26/+13
2017-03-26Ms writer: Use @ instead of | for inline math delimiter.John MacFarlane1-76/+76
The `|` delimiter had a bad interaction with tbl. See discussion in #1839.
2017-03-23Initial addition of groff ms writer.John MacFarlane1-0/+280
* New module: Text.Pandoc.Writers.Ms. * New template: default.ms. * The writer uses texmath's new eqn writer to convert math to eqn format, so a ms file produced with this writer should be processed with `groff -ms -e` if it contains math.