You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixesbustle#360
We insert the new markup at a consistent index across the range.
If we just push on the end of the list, it can end up in different positions
of the markup stack. This results in unnecessary closing and re-opening of
the markup each time it changes position.
If we just push it at the beginning of the list, this causes unnecessary closing
and re-opening of surrounding tags.
So, we look for any tags open across the whole range, and push into the stack
at the end of those.
Example text, where "BOLD" is bolded:
one BOLD two
Selecting this text and adding a link to it will generate HTML with 3
<a>
tags, e.g.:The rendered HTML should be:
This can interfere with styling and is not great for SEO.
The text was updated successfully, but these errors were encountered: