The number extracted from the preceding heading level is being concatenated with "1" rather than added to it (e.g., aria-level="31" instead of the correct aria-level="4").
This fix forces the string to a number and also prevents the level from going over 6.
The number extracted from the preceding heading level is being concatenated with "1" rather than added to it (e.g.,
aria-level="31"
instead of the correctaria-level="4"
).This fix forces the string to a number and also prevents the level from going over 6.
Fixes #2567