aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/App
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/App
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/App')
-rw-r--r--src/Text/Pandoc/App/FormatHeuristics.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/App/FormatHeuristics.hs b/src/Text/Pandoc/App/FormatHeuristics.hs
index 25e0a303e..21de09f3d 100644
--- a/src/Text/Pandoc/App/FormatHeuristics.hs
+++ b/src/Text/Pandoc/App/FormatHeuristics.hs
@@ -75,5 +75,6 @@ formatFromFilePath x =
".wiki" -> Just "mediawiki"
".xhtml" -> Just "html"
".ipynb" -> Just "ipynb"
+ ".csv" -> Just "csv"
['.',y] | y `elem` ['1'..'9'] -> Just "man"
_ -> Nothing