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:
parent
83ea529cf3
commit
261ad9fb3d
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ cellToBlocks opts lang c = do
|
||||||
return $ B.divWith ("",["cell","markdown"],kvs)
|
return $ B.divWith ("",["cell","markdown"],kvs)
|
||||||
$ B.fromList bs
|
$ B.fromList bs
|
||||||
Ipynb.Raw -> do
|
Ipynb.Raw -> do
|
||||||
let format = fromMaybe "" $ lookup "format" kvs
|
let format = fromMaybe "html" $ lookup "format" kvs
|
||||||
let format' =
|
let format' =
|
||||||
case format of
|
case format of
|
||||||
"text/html" -> "html"
|
"text/html" -> "html"
|
||||||
|
|
Loading…
Add table
Reference in a new issue