ipynb reader: remove sensitivity to raw_html, raw_tex extensions.

We now include every output format. Pruning is handled by
`--ipynb-output=`.
This commit is contained in:
John MacFarlane 2019-03-09 16:52:15 -08:00
parent 00ec47b3f9
commit 2476d5f284

View file

@ -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