1
1
mirror of https://github.com/srid/rib.git synced 2024-11-26 13:50:31 +03:00

Add ipynb

This commit is contained in:
Sridhar Ratnakumar 2019-11-25 22:19:32 -05:00
parent 6c6439c87c
commit ff60b350e0

View File

@ -178,14 +178,15 @@ detectReader f = do
liftEither $ maybeToRight (UnknownExtension ext) $
formats !? ext
where
-- TODO: This should compute using `Text.Pandoc.Readers.readers`
formats :: Map String (ReaderOptions -> Text -> m1 Pandoc)
formats =
-- TODO: Expand this list, cf. `Text.Pandoc.Readers.readers`
fromList
[ (".md", readMarkdown),
(".rst", readRST),
(".org", readOrg),
(".tex", readLaTeX)
(".tex", readLaTeX),
(".ipynb", readIpynb)
]
-- Re-constrain code constrained by MonadThrow to be constrained by
-- MonadError instead.