From ee34c4fef845c5a962213de4114606256f3e139b Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 16 Nov 2020 18:21:30 -0800 Subject: Only use filterIpynbOutput if input format is ipynb. Closes #6841. --- src/Text/Pandoc/App.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs index 06492deb7..70ae8ed0e 100644 --- a/src/Text/Pandoc/App.hs +++ b/src/Text/Pandoc/App.hs @@ -241,6 +241,7 @@ convertWithOpts opts = do then (eastAsianLineBreakFilter :) else id) . (case optIpynbOutput opts of + _ | readerNameBase /= "ipynb" -> id IpynbOutputAll -> id IpynbOutputNone -> (filterIpynbOutput Nothing :) IpynbOutputBest -> (filterIpynbOutput (Just $ -- cgit v1.2.3