- Issue created by @lostcarpark
- 🇮🇪Ireland lostcarpark
Of course this problem also occurs with HTML output, except that editors such as CKEditor solve it by only offering H2 down.
An alternative solution would be to create another filter that fixes the problem after conversion to HTML.
I did a quick search, and the first answer I've found is the Heading Normalizer → module, but that hasn't been ported from D7.
- Status changed to Closed: won't fix
over 1 year ago 9:55am 1 August 2023 - 🇺🇸United States ultimike Florida, USA
In an effort to keep this module as simple as possible, I don't think this is a feature that I'm willing to add.
One (simple) solution would be to add
to the list of tags not allowed by the "Limit HTML" filter. @lostcarpark's idea is also a good one, IMHO:An alternative solution would be to create another filter that fixes the problem after conversion to HTML.
I really don't like the idea of automatically heading level based on existing tags or any other methodology. If the user enters
### My heading
then they expect (and should always get) an<h3>
.-mike