35 ms·
If only you could just put html tags in the markdown whenever you need a bit of extra expressivity!
by bloppe 6mo ago
If only you could just put html tags in the markdown whenever you need a bit of extra expressivity!
- spartanatreyu 6mo agohtml 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>