diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-03-28 17:18:11 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-03-28 17:18:11 -0700 |
commit | 261ad9fb3dcc40cb8ae5586ea41ca427c66df0b0 (patch) | |
tree | 9e3a88d5c915556212d15787b3c7f568c43b3617 /src/Text/Pandoc | |
parent | 83ea529cf3cd410b598c3389a1edcc3d5593640c (diff) | |
download | pandoc-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/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/Ipynb.hs | 2 |
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" |