From 2c81c4c218be757ff2610e3b47548f0642ce5c10 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 3 Aug 2017 10:50:05 -0700 Subject: Added gfm (GitHub-flavored CommonMark) as an input and output format. This uses bindings to GitHub's fork of cmark, so it should parse gfm exactly as GitHub does (excepting certain postprocessing steps, involving notifications, emojis, etc.). * Added Text.Pandoc.Readers.GFM (exporting readGFM) * Added Text.Pandoc.Writers.GFM (exporting writeGFM) * Added `gfm` as input and output forma Note that tables are currently always rendered as HTML in the writer; this can be improved when CMarkGFM supports tables in output. --- pandoc.cabal | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pandoc.cabal') diff --git a/pandoc.cabal b/pandoc.cabal index 9de072755..6d43ca457 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -321,6 +321,7 @@ Library JuicyPixels >= 3.1.6.1 && < 3.3, Glob >= 0.7 && < 0.8, cmark >= 0.5 && < 0.6, + cmark-gfm >= 0.1.1 && < 0.2, doctemplates >= 0.1 && < 0.2, http-client >= 0.4.30 && < 0.6, http-client-tls >= 0.2.4 && < 0.4, @@ -370,6 +371,7 @@ Library Text.Pandoc.Readers.LaTeX.Types, Text.Pandoc.Readers.Markdown, Text.Pandoc.Readers.CommonMark, + Text.Pandoc.Readers.GFM, Text.Pandoc.Readers.MediaWiki, Text.Pandoc.Readers.Vimwiki, Text.Pandoc.Readers.RST, @@ -401,6 +403,7 @@ Library Text.Pandoc.Writers.Ms, Text.Pandoc.Writers.Markdown, Text.Pandoc.Writers.CommonMark, + Text.Pandoc.Writers.GFM, Text.Pandoc.Writers.Haddock, Text.Pandoc.Writers.RST, Text.Pandoc.Writers.Org, -- cgit v1.2.3