Ipynb reader: use `html` for a raw cell with no format.
The nbformat spec says that when no format is specified,
the raw cell will be rendered in every markup format.
Pandoc doesn't have a construct that works this way,
so we just fall back to `html`.
commit261ad9fb3dcc40cb8ae5586ea41ca427c66df0b0
authorJohn MacFarlane <jgm@berkeley.edu>
dateThu 28 Mar 2019, 17:18 (8 years ago)
parent83ea529
src/Text/Pandoc/Readers/Ipynb.hs+1−1
@@ -90,7 +90,7 @@ cellToBlocks opts lang c = do
9090 return $ B.divWith ("",["cell","markdown"],kvs)
9191 $ B.fromList bs
9292 Ipynb.Raw -> do
93− let format = fromMaybe "" $ lookup "format" kvs
93+ let format = fromMaybe "html" $ lookup "format" kvs
9494 let format' =
9595 case format of
9696 "text/html" -> "html"