feat(ipynb writer): add more Jupyter's "Raw NBConvert Format"

Adds more formats that Jupyter's "Raw NBConvert Format" uses
natively (asciidoc),
and maps more formats to text/html whenever it makes sense.
This commit is contained in:
Kolen Cheung 2021-09-10 18:34:45 -07:00 committed by John MacFarlane
parent 3483a54c72
commit 17092454c5

View file

@ -138,10 +138,17 @@ extractCells opts (Div (_id,classes,kvs) xs : bs)
let format' =
case T.toLower f of
"html" -> "text/html"
"html4" -> "text/html"
"html5" -> "text/html"
"s5" -> "text/html"
"slidy" -> "text/html"
"slideous" -> "text/html"
"dzslides" -> "text/html"
"revealjs" -> "text/html"
"latex" -> "text/latex"
"markdown" -> "text/markdown"
"rst" -> "text/x-rst"
"asciidoc" -> "text/asciidoc"
_ -> f
(Ipynb.Cell{
cellType = Raw