diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-01-13 07:56:55 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-01-22 21:45:59 -0800 |
commit | 395ea03069167568f8fccb018c794bd43a787b94 (patch) | |
tree | 6b42b2f5daec10b5f5bc5e62b42efc88f7a1053b /src/Text/Pandoc/App | |
parent | 5ddd7b121e1aea061b3e7b831dabbd13311929ff (diff) | |
download | pandoc-395ea03069167568f8fccb018c794bd43a787b94.tar.gz |
Support ipynb (Jupyter notebook) as input and output format.
[API change]
* Depend on ipynb library.
* Add `ipynb` as input and output format.
* Added Text.Pandoc.Readers.Ipynb (supports both nbformat v3 and v4).
* Added Text.Pandoc.Writers.Ipynb (supports nbformat v4).
* Added ipynb readers and writers to T.P.Readers,
T.P.Writers, and T.P.Extensions. Register the
file extension .ipynb for this format.
* Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error.
* Note: there is no template for ipynb.
Diffstat (limited to 'src/Text/Pandoc/App')
-rw-r--r-- | src/Text/Pandoc/App/FormatHeuristics.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/App/FormatHeuristics.hs b/src/Text/Pandoc/App/FormatHeuristics.hs index c8dbcd645..723c5d894 100644 --- a/src/Text/Pandoc/App/FormatHeuristics.hs +++ b/src/Text/Pandoc/App/FormatHeuristics.hs @@ -90,5 +90,6 @@ formatFromFilePath x = ".txt" -> Just "markdown" ".wiki" -> Just "mediawiki" ".xhtml" -> Just "html" + ".ipynb" -> Just "ipynb" ['.',y] | y `elem` ['1'..'9'] -> Just "man" _ -> Nothing |