How are header anchors generated in markdown containing non-ascii characters?

I am loading a markdown file to be displayed in my streamlit app. Some of the headers contain special characters like ä, ö, ü, ß, etc. Whener that is the case, the generated anchor is just an id, and not the hyphenated words of the header. In order to link correctly to the header, I need to use the same logic. However, I could not find how these ids are genreated?

A similar question was also asked here, however, without resolution: Long Anchor Tag Generation

Prior to 1.45.0, non-ascii characters would be converted into a non-human-friendly hash, but the are handled more cleanly as of 1.45.0: [fix] Slugify Markdown anchors by sfc-gh-bnisco · Pull Request #10925 · streamlit/streamlit · GitHub

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.