3 ms·
html comes with baggage. --- If you're writing a parser, you might have text nodes, and bold/italics nodes which can contain each-other and text nodes. Exampl
by spartanatreyu 7mo ago
html comes with baggage.
---
If you're writing a parser, you might have text nodes, and bold/italics nodes which can contain each-other and text nodes. Example:
- bold node
-- italics node
--- text node
But if you add html support, you're going to run into strings like this:
<b><i>text content</b></i>
How easy is it for you to represent that?
What about:
not bold or italic <b>bold but not italic <i> bold and italic </b> italic but not bold </i> not bold or italic
What about:
</b> not bold <b> bold <b> bold again? </b> is this still bold? </b> what about now? <b>