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:
parent
3483a54c72
commit
17092454c5
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue