0.1.0 • Published 3 years ago

htmdown v0.1.0

Weekly downloads
179
License
MIT
Repository
github
Last release
3 years ago

htmdown

npm version

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
);