"Table of content" of the Cookbook: Convert umlauts better for IDs

I use this plugin from the Cookbook:

If the content of a heading contains umlauts, these are not taken into account when generating the ID.

Förderung

becomes

<element id="forderung">Förderung</element>

Desired result:

<element id="foerderung">Förderung</element>

Is there a way to do this? Thank you.

I suspect a connection with this error:

I wasn’t talking about file names with umlauts. I never use umlauts in file names.

I’m only concerned with the ToC.

… Convert umlauts better for IDs

Förderung → ö = Umlaut

Sorry, I must have misunderstood…

That is content. Not a name of file.

1 Like

Thank you! : ) What an elegant solution!

A thought for the future:
Would it perhaps make sense to make the language for the slug generator dependent on the main language of the site?
Then there would be a useful default.

Just an idea.