From f9514ccb9e6efbd33ad84fcc1dfef20603affc4c Mon Sep 17 00:00:00 2001 From: John MacFarlane <jgm@berkeley.edu> Date: Fri, 31 Jan 2020 21:14:21 -0800 Subject: 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. --- src/Text/Pandoc/App/FormatHeuristics.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Text/Pandoc/App') 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 -- cgit v1.2.3