From 1c4c384a622ee5db7aea0d6d3d2f10f8ada891f1 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 6 Mar 2019 10:09:34 -0800 Subject: ipynb writer: recurse into native divs for output cell data. See #5354. --- src/Text/Pandoc/Writers/Ipynb.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Writers/Ipynb.hs b/src/Text/Pandoc/Writers/Ipynb.hs index b7eb7f9f6..661f585f4 100644 --- a/src/Text/Pandoc/Writers/Ipynb.hs +++ b/src/Text/Pandoc/Writers/Ipynb.hs @@ -208,6 +208,7 @@ extractData bs = do return (M.insert "text/html" (TextualData (T.pack raw)) mmap, meta) go (mmap, meta) (RawBlock (Format "latex") raw) = return (M.insert "text/latex" (TextualData (T.pack raw)) mmap, meta) + go (mmap, meta) (Div _ bs') = foldM go (mmap, meta) bs' go (mmap, meta) b = (mmap, meta) <$ report (BlockNotRendered b) pairsToJSONMeta :: [(String, String)] -> JSONMeta -- cgit v1.2.3