aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-11-29 11:26:46 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-11-29 11:27:05 -0800
commit67f5d65cd5cd3404db9492bd2e6d38bd92e8625d (patch)
tree1f7f73d82c4f578e00f51be095bd0793b9913767
parent83fff033fbb487be85b20914c8c048d9206020b3 (diff)
downloadpandoc-67f5d65cd5cd3404db9492bd2e6d38bd92e8625d.tar.gz
Add `ascii_identifiers` as a supported extension for `markdown`.
This fixes a regression in 2.8.
-rw-r--r--src/Text/Pandoc/Extensions.hs52
1 files changed, 25 insertions, 27 deletions
diff --git a/src/Text/Pandoc/Extensions.hs b/src/Text/Pandoc/Extensions.hs
index fc35c6fc8..6610694e6 100644
--- a/src/Text/Pandoc/Extensions.hs
+++ b/src/Text/Pandoc/Extensions.hs
@@ -374,33 +374,6 @@ getDefaultExtensions "opml" = pandocExtensions -- affects notes
getDefaultExtensions _ = extensionsFromList
[Ext_auto_identifiers]
-allMarkdownExtensions :: Extensions
-allMarkdownExtensions =
- pandocExtensions <>
- extensionsFromList
- [ Ext_old_dashes
- , Ext_angle_brackets_escapable
- , Ext_lists_without_preceding_blankline
- , Ext_four_space_rule
- , Ext_spaced_reference_links
- , Ext_hard_line_breaks
- , Ext_ignore_line_breaks
- , Ext_east_asian_line_breaks
- , Ext_emoji
- , Ext_tex_math_single_backslash
- , Ext_tex_math_double_backslash
- , Ext_markdown_attribute
- , Ext_mmd_title_block
- , Ext_abbreviations
- , Ext_autolink_bare_uris
- , Ext_mmd_link_attributes
- , Ext_mmd_header_identifiers
- , Ext_compact_definition_lists
- , Ext_gutenberg
- , Ext_smart
- , Ext_literate_haskell
- ]
-
-- | Get all valid extensions for a format. This is used
-- mainly in checking format specifications for validity.
@@ -414,6 +387,31 @@ getAllExtensions f = universalExtensions <> getAll f
]
universalExtensions = extensionsFromList
[ Ext_east_asian_line_breaks ]
+ allMarkdownExtensions =
+ pandocExtensions <> autoIdExtensions <>
+ extensionsFromList
+ [ Ext_old_dashes
+ , Ext_angle_brackets_escapable
+ , Ext_lists_without_preceding_blankline
+ , Ext_four_space_rule
+ , Ext_spaced_reference_links
+ , Ext_hard_line_breaks
+ , Ext_ignore_line_breaks
+ , Ext_east_asian_line_breaks
+ , Ext_emoji
+ , Ext_tex_math_single_backslash
+ , Ext_tex_math_double_backslash
+ , Ext_markdown_attribute
+ , Ext_mmd_title_block
+ , Ext_abbreviations
+ , Ext_autolink_bare_uris
+ , Ext_mmd_link_attributes
+ , Ext_mmd_header_identifiers
+ , Ext_compact_definition_lists
+ , Ext_gutenberg
+ , Ext_smart
+ , Ext_literate_haskell
+ ]
getAll "markdown_strict" = allMarkdownExtensions
getAll "markdown_phpextra" = allMarkdownExtensions
getAll "markdown_mmd" = allMarkdownExtensions