git.iko.soy/typeable/pandoc
on master help sign in
`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.

commitc647948ff186411c2dc93ae92d134805726aea54 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 20 Nov 2020, 09:17 (6 years ago) parentd286242
2 files changed+6−5
src/Text/Pandoc/Extensions.hs+4−3 test/command/4742.md+2−2
src/Text/Pandoc/Extensions.hs+4−3
@@ -355,7 +355,7 @@ getDefaultExtensions "commonmark" = extensionsFromList
355355getDefaultExtensions "commonmark_x" = extensionsFromList
356356 [ Ext_pipe_tables
357357 , Ext_raw_html
358− , Ext_auto_identifiers
358+ , Ext_gfm_auto_identifiers
359359 , Ext_strikeout
360360 , Ext_task_lists
361361 , Ext_emoji
@@ -474,9 +474,10 @@ getAllExtensions f = universalExtensions <> getAll f
474474 getAll "plain" = allMarkdownExtensions
475475 getAll "gfm" = getAll "commonmark"
476476 getAll "commonmark" =
477− autoIdExtensions <>
478477 extensionsFromList
479− [ Ext_pipe_tables
478+ [ Ext_gfm_auto_identifiers
479+ , Ext_ascii_identifiers
480+ , Ext_pipe_tables
480481 , Ext_autolink_bare_uris
481482 , Ext_strikeout
482483 , Ext_task_lists
test/command/4742.md+2−2
@@ -2,7 +2,7 @@ Check that the commonmark reader handles the `ascii_identifiers`
22extension properly.
33
44```
5−% pandoc -f commonmark+auto_identifiers+gfm_auto_identifiers+ascii_identifiers -t native
5+% pandoc -f commonmark+gfm_auto_identifiers+ascii_identifiers -t native
66# non ascii ⚠️ räksmörgås
77^D
88[Header 1 ("non-ascii--raksmorgas",[],[]) [Str "non",Space,Str "ascii",Space,Str "\9888\65039",Space,Str "r\228ksm\246rg\229s"]]
@@ -13,7 +13,7 @@ formed from \9888 and \65039. The latter is a combining mark,
1313so it survives...
1414
1515```
16−% pandoc -f commonmark+auto_identifiers+gfm_auto_identifiers-ascii_identifiers -t native
16+% pandoc -f commonmark+gfm_auto_identifiers-ascii_identifiers -t native
1717# non ascii ⚠️ räksmörgås
1818^D
1919[Header 1 ("non-ascii-\65039-r\228ksm\246rg\229s",[],[]) [Str "non",Space,Str "ascii",Space,Str "\9888\65039",Space,Str "r\228ksm\246rg\229s"]]