diff options
author | Kolen Cheung <christian.kolen@gmail.com> | 2021-09-10 18:34:45 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-09-10 21:11:28 -0700 |
commit | 17092454c5ba0e16f26b8787e6a9b9c8a35b7b67 (patch) | |
tree | 82bcf6f960598ea83024bc471ba8157b71d28ab7 /src | |
parent | 3483a54c72b4ebe9de0e7aea5b3168f65b24d958 (diff) | |
download | pandoc-17092454c5ba0e16f26b8787e6a9b9c8a35b7b67.tar.gz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Writers/Ipynb.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/Ipynb.hs b/src/Text/Pandoc/Writers/Ipynb.hs index 2613851c5..3c3bdb3a5 100644 --- a/src/Text/Pandoc/Writers/Ipynb.hs +++ b/src/Text/Pandoc/Writers/Ipynb.hs @@ -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 |