htmdown
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i htmdown

Weekly Downloads

7

Version

0.1.0

License

MIT

Unpacked Size

3.53 kB

Total Files

5

Last publish

Collaborators

  • mxmul