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/App | |
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/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 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 |