3 ms·
Using an HTML renderer to render arbitrarily formatted text with full HTML formatting capabilities makes perfect sense. If that's your problem statement, then y
by tardedmeme 5mo ago
Using an HTML renderer to render arbitrarily formatted text with full HTML formatting capabilities makes perfect sense. If that's your problem statement, then you kinda need an HTML renderer.
- stavros 5mo agoThe author wasn't trying to render HTML. Everyone is focusing on the word "Markdown", I wish the author had just said "rich text" instead so we could actually have a fruitful conversation.
- Wowfunhappy 5mo agoBut if he'd said rich text the answer would be different! Markdown is designed to be converted to html, and in fact it can contain html.
- stavros 5mo agoRight, but he clearly didn't mean HTML, otherwise he wouldn't be trying native elements in the first place.
- tardedmeme 5mo agoHe means Markdown, but Markdown is mean to turn into HTML. Rendering it any other way than converting it to HTML gives a different result, and if anyone complains about it, it'll be your fault since you didn't render it the proper way. It turns out a lot of things are like this. Another commentator mentioned Slack messages.
- Wowfunhappy 5mo agoI feel like Typescript is a good analogy here. Typescript is its own language, but it is intended to be transpiled into Javascript. Yes, you could probably create a JIT that executes Typescript directly—but you would do so at your own peril. Reaching for an existing Javascript interpreter such as JavaScriptCore or V8 is the logical choice.