3 ms·
The 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 h
by stavros 6mo ago
The 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 6mo 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 6mo agoRight, but he clearly didn't mean HTML, otherwise he wouldn't be trying native elements in the first place.
- tardedmeme 6mo 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.