Closed 3ynm closed 1 year ago
This is already done by the transliterated_header_ids
option:
$ kramdown
# Déjà vu
# Hello
^d
<h1 id="dj-vu">Déjà vu</h1>
<h1 id="hello">Hello</h1>
$ kramdown --transliterated-header-ids
# Déjà vu
# Hello
^d
<h1 id="deja-vu">Déjà vu</h1>
<h1 id="hello">Hello</h1>
@gettalong nice! though my solution doesn't require external dependencies... maybe I could improve that?
@hacktivista I'm not sure this would be equivalent, see for example:
$ kramdown --transliterated-header-ids
# Зарегистрируйтесь сейчас
^d
<h1 id="zarieghistriruities-sieichas">Зарегистрируйтесь сейчас</h1>
I see, that is way more compatible.
At present, the utilization of auto_ids while writing headers with accented characters results in their removal rather than their conversion to the ASCII version. This patch solves the issue for various languages.
Example:
Results in id
hello
.Results in id
dj-vu
.With the patch it would result in id
deja-vu
.