From c647948ff186411c2dc93ae92d134805726aea54 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 20 Nov 2020 09:17:14 -0800 Subject: `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. --- src/Text/Pandoc/Extensions.hs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3