zerodevx / zero-md

Ridiculously simple zero-config markdown displayer
https://zerodevx.github.io/zero-md/
ISC License
423 stars 48 forks source link

Cyrillic anchor links doesn't works #78

Closed ulbwa closed 1 month ago

ulbwa commented 1 year ago

If you use the headers in Cyrillic, the anchor links written to them will not scroll the page to the desired h tag.

[latin anchor link works](#latin-header)

[cyrillic anchor link doesn't works](#кириллический-заголовок)

# Latin header

some text

# Кириллический заголовок

some text
zerodevx commented 1 year ago

Thanks for the report - I should really look into supporting non-latin characters.

zerodevx commented 1 year ago

Marking this as an enhancement because slugification is in the remit of markedjs: https://marked.js.org/using_pro#renderer

Might add first class support in a future release.