diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-04-26 09:44:31 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-04-26 12:23:25 -0700 |
commit | e3d05171f3661008a3377c2b0f793fc846cfe497 (patch) | |
tree | 7b254be6243ac312fefa4057988fa33dde887e8b /src/Text | |
parent | 3ed4861c6290ab51cc45ba585237b33d96a0c03c (diff) | |
download | pandoc-e3d05171f3661008a3377c2b0f793fc846cfe497.tar.gz |
Make `--ascii` work for all XML formats (ICML, OPML, JATS,...).
Also document in manual.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/App.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs index b5683ca87..99277d434 100644 --- a/src/Text/Pandoc/App.hs +++ b/src/Text/Pandoc/App.hs @@ -516,8 +516,9 @@ convertWithOpts opts = do escape | optAscii opts , htmlFormat || format == "docbook4" || - format == "docbook5" || format == "docbook" = - toEntities + format == "docbook5" || format == "docbook" || + format == "jats" || format == "opml" || + format == "icml" = toEntities | optAscii opts , format == "ms" || format == "man" = groffEscape | otherwise = id |