mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
Headline IDs without reserved-CSS characters #552
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 @Mrks83 on GitHub (Aug 30, 2022).
Markdig generates IDs that might contain a
.character. This is not optimal (see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id#sect2).Would be nice to be able to escape
.(and other characters reserved in css+,~,!), too.@xoofx commented on GitHub (Aug 30, 2022):
I think that originally, the default generated IDs was following pandoc (see the output here)
But you can configure the AutoIdentifier extension directly and use
AutoIdentifierOptions.GitHubinstead.@Mrks83 commented on GitHub (Aug 31, 2022):
Thanks for the
AutoIdentifierOptions.GitHubhint, that helps and works exactly as proposed.