htmdown
v0.1.0
Published
htmdown is MDX-like syntax in plain JavaScript, without a transpiler.
Downloads
8
Maintainers
Readme
htmdown
htmdown
is MDX-like syntax in plain JavaScript, without a transpiler.
It's built on top of htm and uses Tagged Template literals.
Installation
via npm:
npm i htmdown
via Skypack:
import htmdown from "https://cdn.skypack.dev/htmdown";
const md = htmdown.bind(React.createElement);
Usage
render(
md`
# h1
## h2
_hello_ **world**
${reactNode}
^ that was a React component!
`,
document.body
);