git.iko.soy/typeable/pandoc
on master help sign in
Make `--ascii` work for all XML formats (ICML, OPML, JATS,...).

Also document in manual.

commite3d05171f3661008a3377c2b0f793fc846cfe497 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 26 Apr 2018, 09:44 (8 years ago) parent3ed4861
2 files changed+7−5
MANUAL.txt+4−3 src/Text/Pandoc/App.hs+3−2
MANUAL.txt+4−3
@@ -830,9 +830,10 @@ Options affecting specific writers
830830
831831`--ascii`
832832
833−: Use only ASCII characters in output. Currently supported only for
834− HTML and DocBook output (which uses numerical entities instead of
835− UTF-8 when this option is selected).
833+: Use only ASCII characters in output. Currently supported for
834+ XML and HTML formats (which use numerical entities instead of
835+ UTF-8 when this option is selected) and for groff ms and man
836+ (which use hexadecimal escapes).
836837
837838`--reference-links`
838839
src/Text/Pandoc/App.hs+3−2
@@ -516,8 +516,9 @@ convertWithOpts opts = do
516516 escape
517517 | optAscii opts
518518 , htmlFormat || format == "docbook4" ||
519− format == "docbook5" || format == "docbook" =
520− toEntities
519+ format == "docbook5" || format == "docbook" ||
520+ format == "jats" || format == "opml" ||
521+ format == "icml" = toEntities
521522 | optAscii opts
522523 , format == "ms" || format == "man" = groffEscape
523524 | otherwise = id