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`.
This commit is contained in:
John MacFarlane 2019-03-28 17:18:11 -07:00
parent 83ea529cf3
commit 261ad9fb3d

View file

@ -90,7 +90,7 @@ cellToBlocks opts lang c = do
return $ B.divWith ("",["cell","markdown"],kvs)
$ B.fromList bs
Ipynb.Raw -> do
let format = fromMaybe "" $ lookup "format" kvs
let format = fromMaybe "html" $ lookup "format" kvs
let format' =
case format of
"text/html" -> "html"