pandoc/test/command/ascii.md
John MacFarlane efbb329f1a Groff escaping changes.
- `--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-18 10:21:34 -07:00

439 B

pandoc -t html --ascii
äéıå
^D
<p>&#228;&#233;&#305;&#229;</p>
pandoc -t latex --ascii
äéıå
^D
\"{a}\'{e}\i \r{a}
pandoc -t man --ascii
äéıå
^D
.PP
\[:a]\['e]\[.i]\[oa]
pandoc -t ms --ascii
äéıå
^D
.LP
\[:a]\['e]\[.i]\[oa]
pandoc -t docbook --ascii
äéıå
^D
<para>
  &#228;&#233;&#305;&#229;
</para>
pandoc -t jats --ascii
äéıå
^D
<p>&#228;&#233;&#305;&#229;</p>