Comment

Comment by FigmentEngine

overlapping b and i elements <p>he<b>ll<i>o w</b>or</i>ld</p>

contary to the article it can still be represented as a tree, by decomposing the children into their own nodes (so in this case characters become nodes with child nodes expressing what formatting is active, followed by the letter, and then turn of all the active formatting)

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton