summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Options.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-08-21 20:11:10 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2012-08-21 20:11:10 -0700
commitdc8e5970bfeb6bc760bf57b87b5d99f1a2c2ad38 (patch)
tree7f7576a399f01692ca135a8c06e9ffa1dfe68ecf /src/Text/Pandoc/Options.hs
parentdc6a133dbfdfcae670ee64e86700fd8234540643 (diff)
Implemented Ext_backtick_code_blocks.
This is the variant github prefers.
Diffstat (limited to 'src/Text/Pandoc/Options.hs')
-rw-r--r--src/Text/Pandoc/Options.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Options.hs b/src/Text/Pandoc/Options.hs
index ea5ebf678..a9c8bf710 100644
--- a/src/Text/Pandoc/Options.hs
+++ b/src/Text/Pandoc/Options.hs
@@ -66,6 +66,7 @@ data Extension =
| Ext_latex_macros -- ^ Parse LaTeX macro definitions (for math only)
| Ext_fenced_code_blocks -- ^ Parse fenced code blocks
| Ext_fenced_code_attributes -- ^ Allow attributes on fenced code blocks
+ | Ext_backtick_code_blocks -- ^ Github style ``` code blocks
| Ext_inline_code_attributes -- ^ Allow attributes on inline code
| Ext_markdown_in_html_blocks -- ^ Interpret as markdown inside HTML blocks
| Ext_markdown_attribute -- ^ Interpret text inside HTML as markdown
@@ -107,6 +108,7 @@ pandocExtensions = Set.fromList
, Ext_latex_macros
, Ext_fenced_code_blocks
, Ext_fenced_code_attributes
+ , Ext_backtick_code_blocks
, Ext_inline_code_attributes
, Ext_markdown_in_html_blocks
, Ext_escaped_line_breaks