diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-11-20 09:17:14 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-11-20 09:17:14 -0800 |
commit | c647948ff186411c2dc93ae92d134805726aea54 (patch) | |
tree | 235ff18ebbb559a49c13570d9f160e90d1a552f6 /src | |
parent | d2862421315a0be59e2e2ec088b9b24928224aa2 (diff) | |
download | pandoc-c647948ff186411c2dc93ae92d134805726aea54.tar.gz |
`commonmark_x`: replace `auto_identifiers` with `gfm_auto_identifiers`.
`commonmark_x` never actually supported `auto_identifiers` (it
didn't do anything), because the underlying library implements
gfm-style identifiers only.
Attempts to add the `autolink_identifiers` extension to
`commonmark` will now fail with an error.
Closes #6863.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Extensions.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Extensions.hs b/src/Text/Pandoc/Extensions.hs index 6415bdc89..646f7abfb 100644 --- a/src/Text/Pandoc/Extensions.hs +++ b/src/Text/Pandoc/Extensions.hs @@ -355,7 +355,7 @@ getDefaultExtensions "commonmark" = extensionsFromList getDefaultExtensions "commonmark_x" = extensionsFromList [ Ext_pipe_tables , Ext_raw_html - , Ext_auto_identifiers + , Ext_gfm_auto_identifiers , Ext_strikeout , Ext_task_lists , Ext_emoji @@ -474,9 +474,10 @@ getAllExtensions f = universalExtensions <> getAll f getAll "plain" = allMarkdownExtensions getAll "gfm" = getAll "commonmark" getAll "commonmark" = - autoIdExtensions <> extensionsFromList - [ Ext_pipe_tables + [ Ext_gfm_auto_identifiers + , Ext_ascii_identifiers + , Ext_pipe_tables , Ext_autolink_bare_uris , Ext_strikeout , Ext_task_lists |