Open lassediercks opened 1 week ago
For the sake of simplicity to fix this edge case I think removing leading numbers would be the best option here. Converting numbers to words would make it necessary to do it in a localization aware way. Because 1
is converted to one
, eins
, uno
or une
etc... dependent from the locale of the page.
Is your feature request related to a problem? Please describe.
There is no technical implication, only a spec compliance issue.
According to the html spec id's must start with a letter. Given a Content Editor uses the Headline Ingredient to write something like:
1. How to photograph an elk
the autogenerated domId would be1-how-to-photograph-an-elk
howto.com/photo/guides#1-how-to-photograph-an-elk
works though and also using an anchor link likedoes work properly
Describe the solution you'd like
I'd expect alchemy Ingredient type Headline to convert integers to the word.
e.g.
1-how-to-photograph-an-elk
would becomeone-how-to-photograph-an-elk
Describe alternatives you've considered
An alternative could be to just remove the integers from the domId