aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-01-31 21:14:21 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-01-31 21:14:21 -0800
commitf9514ccb9e6efbd33ad84fcc1dfef20603affc4c (patch)
tree4da927d6dd9e253d02efb08f30b211d865f33d86 /src/Text/Pandoc/Readers.hs
parentcef30e738460c177e74df39166b351bec75857ea (diff)
downloadpandoc-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.hs3
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).