git.iko.soy/typeable/pandoc
on bc3caaa help sign in
29 lines 1.0 kB history raw
1Check that the commonmark reader handles the `ascii_identifiers`
2extension properly.
4```
5% pandoc -f commonmark+auto_identifiers+gfm_auto_identifiers+ascii_identifiers -t native
6# non ascii ⚠️ räksmörgås
7^D
8[Header 1 ("non-ascii--raksmorgas",[],[]) [Str "non",Space,Str "ascii",Space,Str "\9888\65039",Space,Str "r\228ksm\246rg\229s"]]
9```
11Note that the emoji here is actually a composite character,
12formed from \9888 and \65039. The latter is a combining mark,
13so it survives...
15```
16% pandoc -f commonmark+auto_identifiers+gfm_auto_identifiers-ascii_identifiers -t native
17# non ascii ⚠️ räksmörgås
18^D
19[Header 1 ("non-ascii-\65039-r\228ksm\246rg\229s",[],[]) [Str "non",Space,Str "ascii",Space,Str "\9888\65039",Space,Str "r\228ksm\246rg\229s"]]
20```
22`gfm` should have `ascii_identifiers` disabled by default.
24```
25% pandoc -f gfm -t native
26# non ascii ⚠️ räksmörgås
27^D
28[Header 1 ("non-ascii-\65039-r\228ksm\246rg\229s",[],[]) [Str "non",Space,Str "ascii",Space,Str "\9888\65039",Space,Str "r\228ksm\246rg\229s"]]
29```