A regression of #27661
@MartijnCuppens: maybe with just CSS or alternatively if we could make them use h5-h6 consistently, we could allow h2-h4 for anchors.