git.iko.soy/typeable/pandoc
on master help sign in
Only use filterIpynbOutput if input format is ipynb.
ee34c4fJohn MacFarlane
src/Text/Pandoc/App.hs+1
@@ -241,6 +241,7 @@ convertWithOpts opts = do
241 then (eastAsianLineBreakFilter :)
241 then (eastAsianLineBreakFilter :)
242 else id) .
242 else id) .
243 (case optIpynbOutput opts of
243 (case optIpynbOutput opts of
244+ _ | readerNameBase /= "ipynb" -> id
244 IpynbOutputAll -> id
245 IpynbOutputAll -> id
245 IpynbOutputNone -> (filterIpynbOutput Nothing :)
246 IpynbOutputNone -> (filterIpynbOutput Nothing :)
246 IpynbOutputBest -> (filterIpynbOutput (Just $
247 IpynbOutputBest -> (filterIpynbOutput (Just $