aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-11-16 18:21:30 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-11-16 18:21:30 -0800
commitee34c4fef845c5a962213de4114606256f3e139b (patch)
tree4a18c2a34584888f7ea543961c72807752932abf /src
parent98bedd7631767fc5ba2b3e971c4972033b59e65f (diff)
downloadpandoc-ee34c4fef845c5a962213de4114606256f3e139b.tar.gz
Only use filterIpynbOutput if input format is ipynb.
Closes #6841.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/App.hs1
1 files changed, 1 insertions, 0 deletions
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 $