3 ms·
Looks like it's advertised as "zero-overhead", i.e. it gets compiled by Babel at build time. Not sure it would make a big difference for most apps though. I th
by tlrobinson 10y ago
Looks like it's advertised as "zero-overhead", i.e. it gets compiled by Babel at build time. Not sure it would make a big difference for most apps though.
I think more importantly it allows you to use JSX inside of your Markdown, and use custom React components in place of normal HTML elements that Markdown would normally emit.
I like the idea of a <Markdown> component though.
- LeanderK 10y agoi am not really into this stuff, but would this be a good use for http://webcomponents.org http://webcomponents.org?
- svachalek 10y agoIt would not be hard to create a web component that translates markdown at runtime; there are probably a few in there already. But that's a very different use-case than transpilation. Personally, I don't see much need for handling this at compile-time, but it is what it is, and runtime rendering is a different thing entirely.