diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-11-16 18:21:30 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-11-16 18:21:30 -0800 |
commit | ee34c4fef845c5a962213de4114606256f3e139b (patch) | |
tree | 4a18c2a34584888f7ea543961c72807752932abf /src | |
parent | 98bedd7631767fc5ba2b3e971c4972033b59e65f (diff) | |
download | pandoc-ee34c4fef845c5a962213de4114606256f3e139b.tar.gz |
Only use filterIpynbOutput if input format is ipynb.
Closes #6841.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/App.hs | 1 |
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 $ |