From e3d05171f3661008a3377c2b0f793fc846cfe497 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 26 Apr 2018 09:44:31 -0700 Subject: Make `--ascii` work for all XML formats (ICML, OPML, JATS,...). Also document in manual. --- src/Text/Pandoc/App.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Text') 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 -- cgit v1.2.3