mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
How can I change the rendering of ID of a Header element? #94
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @asapostolov on GitHub (Feb 16, 2017).
I'm converting Cyrillic alphabet markdown to html. When h2/3/4/5 elements are made when the alphabet is Latin the header's text is converted to id in a proper way. However when the alphabet is Cyrillic the id-s of the headers become
section-1,section-2,section-3etc.How can I modify that behavior to be able to generate proper Cyrillic ids?
@xoofx commented on GitHub (Feb 17, 2017):
By default, the auto-identifier tries to convert to ASCII using some character correspondence. Can you post an example headers with cyrillic alphabet?
Otherwise, you should be able to disable the ASCII conversion:
@asapostolov commented on GitHub (Feb 20, 2017):
Here's an Cyrillic Header
Здравейте, аз съм Петър и съм програмистWhen I did as you said - I removed the extension and used
AutoLink- the Ids started converting properly to Cyrillic. Thanks!