diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-01-31 21:14:21 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-01-31 21:14:21 -0800 |
commit | f9514ccb9e6efbd33ad84fcc1dfef20603affc4c (patch) | |
tree | 4da927d6dd9e253d02efb08f30b211d865f33d86 /src/Text/Pandoc/Readers.hs | |
parent | cef30e738460c177e74df39166b351bec75857ea (diff) | |
download | pandoc-f9514ccb9e6efbd33ad84fcc1dfef20603affc4c.tar.gz |
Add Text.Pandoc.Readers.CSV (readCSV).
This adds csv as an input format.
The CSV table is converted into a pandoc simple table.
Closes #6100.
Diffstat (limited to 'src/Text/Pandoc/Readers.hs')
-rw-r--r-- | src/Text/Pandoc/Readers.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers.hs b/src/Text/Pandoc/Readers.hs index 990e78f35..28c7c6810 100644 --- a/src/Text/Pandoc/Readers.hs +++ b/src/Text/Pandoc/Readers.hs @@ -51,6 +51,7 @@ module Text.Pandoc.Readers , readMuse , readFB2 , readIpynb + , readCSV -- * Miscellaneous , getReader , getDefaultExtensions @@ -95,6 +96,7 @@ import Text.Pandoc.Readers.TWiki import Text.Pandoc.Readers.Txt2Tags import Text.Pandoc.Readers.Vimwiki import Text.Pandoc.Readers.Man +import Text.Pandoc.Readers.CSV import qualified Text.Pandoc.UTF8 as UTF8 import Text.Parsec.Error @@ -136,6 +138,7 @@ readers = [ ("native" , TextReader readNative) ,("man" , TextReader readMan) ,("fb2" , TextReader readFB2) ,("ipynb" , TextReader readIpynb) + ,("csv" , TextReader readCSV) ] -- | Retrieve reader, extensions based on formatSpec (format+extensions). |