aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-03-28 17:18:11 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-03-28 17:18:11 -0700
commit261ad9fb3dcc40cb8ae5586ea41ca427c66df0b0 (patch)
tree9e3a88d5c915556212d15787b3c7f568c43b3617 /src
parent83ea529cf3cd410b598c3389a1edcc3d5593640c (diff)
downloadpandoc-261ad9fb3dcc40cb8ae5586ea41ca427c66df0b0.tar.gz
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`.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/Ipynb.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Ipynb.hs b/src/Text/Pandoc/Readers/Ipynb.hs
index 6c8708409..10f3a0675 100644
--- a/src/Text/Pandoc/Readers/Ipynb.hs
+++ b/src/Text/Pandoc/Readers/Ipynb.hs
@@ -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"