markdown-toc icon indicating copy to clipboard operation
markdown-toc copied to clipboard

Support umlauts in links

Open philmtd opened this issue 8 years ago • 3 comments

It would be nice if there was an option for supporting german umlauts in the links, e.g. this is what markdown-toc creates:

+ [Frachtaufträge](#frachtauftrage)

This is what I desire:

+ [Frachtaufträge](#frachtaufträge)

GitLab creates anchors with umlauts so currently I need to manually edit all anchors with umlauts.

philmtd avatar Mar 03 '17 12:03 philmtd

Agree, we should support this. Want to do a pr?

jonschlinkert avatar Mar 03 '17 16:03 jonschlinkert

Yep I just did a PR: #81 👍

philmtd avatar Mar 03 '17 19:03 philmtd

I'd like to muddy the scope of this issue a bit by suggesting that transliteration would be another option:

+ [Frachtaufträge](#frachtauftraege)

German umlauts ("ä", "ö", "ü") can also be written as "ae", "oe", "ue". For more examples from various languages check out the transliteration package.

mootari avatar Jan 13 '18 15:01 mootari