From 261ad9fb3dcc40cb8ae5586ea41ca427c66df0b0 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 28 Mar 2019 17:18:11 -0700 Subject: [PATCH] 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`. --- src/Text/Pandoc/Readers/Ipynb.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"