From 2476d5f28407b784f977a257dc394d21394e61c6 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 9 Mar 2019 16:52:15 -0800 Subject: ipynb reader: remove sensitivity to `raw_html`, `raw_tex` extensions. We now include every output format. Pruning is handled by `--ipynb-output=`. --- src/Text/Pandoc/Readers/Ipynb.hs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/Text/Pandoc/Readers/Ipynb.hs') diff --git a/src/Text/Pandoc/Readers/Ipynb.hs b/src/Text/Pandoc/Readers/Ipynb.hs index 156e6bb8d..c029dfcfa 100644 --- a/src/Text/Pandoc/Readers/Ipynb.hs +++ b/src/Text/Pandoc/Readers/Ipynb.hs @@ -184,14 +184,10 @@ handleData opts metadata (MimeBundle mb) = | otherwise = return mempty dataBlock ("text/html", TextualData t) - | extensionEnabled Ext_raw_html exts - = return $ B.rawBlock "html" $ T.unpack t - | otherwise = return mempty + = return $ B.rawBlock "html" $ T.unpack t dataBlock ("text/latex", TextualData t) - | extensionEnabled Ext_raw_tex exts - = return $ B.rawBlock "latex" $ T.unpack t - | otherwise = return mempty + = return $ B.rawBlock "latex" $ T.unpack t dataBlock ("text/plain", TextualData t) = return $ B.codeBlock $ T.unpack t -- cgit v1.2.3