git.iko.soy/typeable/pandoc
on master help sign in
Only use filterIpynbOutput if input format is ipynb.

Closes #6841.

commitee34c4fef845c5a962213de4114606256f3e139b authorJohn MacFarlane <jgm@berkeley.edu> dateMon 16 Nov 2020, 18:21 (6 years ago) parent98bedd7
1 file changed+1
src/Text/Pandoc/App.hs+1
src/Text/Pandoc/App.hs+1
@@ -241,6 +241,7 @@ convertWithOpts opts = do
241241 then (eastAsianLineBreakFilter :)
242242 else id) .
243243 (case optIpynbOutput opts of
244+ _ | readerNameBase /= "ipynb" -> id
244245 IpynbOutputAll -> id
245246 IpynbOutputNone -> (filterIpynbOutput Nothing :)
246247 IpynbOutputBest -> (filterIpynbOutput (Just $