yuin / goldmark

:trophy: A markdown parser written in Go. Easy to extend, standard(CommonMark) compliant, well structured.
MIT License
3.68k stars 255 forks source link

[Question] How can I provide my own ID-Generator? #156

Closed Skeeve closed 4 years ago

Skeeve commented 4 years ago

This is not a real issue but merely a question of how-do-I.

The problem at hand for me currently is that I'm using VSCodium with a Markdown plugin which can auto-generate a ToC. The links in the ToC seem to be created from the heading by leaving out everything but letters (even foreign ones), digits, minus, and spaces, where spaces are replaced by a minus.

The AutoGenerateIDs generates something different and I'm wondering how I could provide my own ID Generator which would be compatible with the VSCodium plugin.

Skeeve commented 4 years ago

Solved for me by using Confluence's ToC Macro