git.iko.soy/typeable/pandoc
on master help sign in
auto_identifiers should not be defined with commonmark.

Only gfm_auto_identifers.

commitbba0a5b230e5710fe1d2435a0a4a4b552b8c926c authorJohn MacFarlane <jgm@berkeley.edu> dateFri 8 May 2020, 22:49 (6 years ago) parent041ab7b
2 files changed+8−7
src/Text/Pandoc/Extensions.hs+6−5 test/command/4742.md+2−2
src/Text/Pandoc/Extensions.hs+6−5
@@ -340,8 +340,7 @@ getDefaultExtensions "commonmark" = extensionsFromList
340340 [Ext_raw_html]
341341getDefaultExtensions "commonmark_x" = extensionsFromList
342342 [ Ext_pipe_tables
343− , Ext_raw_html
344− , Ext_auto_identifiers
343+ , Ext_gfm_auto_identifiers
345344 , Ext_strikeout
346345 , Ext_task_lists
347346 , Ext_emoji
@@ -456,11 +455,11 @@ getAllExtensions f = universalExtensions <> getAll f
456455 [ Ext_amuse ]
457456 getAll "asciidoc" = autoIdExtensions
458457 getAll "plain" = allMarkdownExtensions
459− getAll "gfm" = getAll "commonmark"
460458 getAll "commonmark" =
461− autoIdExtensions <>
462459 extensionsFromList
463− [ Ext_pipe_tables
460+ [ Ext_gfm_auto_identifiers
461+ , Ext_ascii_identifiers
462+ , Ext_pipe_tables
464463 , Ext_autolink_bare_uris
465464 , Ext_strikeout
466465 , Ext_task_lists
@@ -482,6 +481,8 @@ getAllExtensions f = universalExtensions <> getAll f
482481 , Ext_implicit_header_references
483482 , Ext_attributes
484483 ]
484+ getAll "gfm" = getAll "commonmark"
485+ getAll "commonmark_x" = getAll "commonmark"
485486 getAll "org" = autoIdExtensions <>
486487 extensionsFromList
487488 [ Ext_citations
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"]]