Star on GitHub

v3.2.0 · MIT licence · 9 kB gzipped

Markdown to HTML in microseconds. No dependencies.

Quillmark is a CommonMark compliant parser for JavaScript that runs in browsers, Node, Deno and Bun. It is safe by default, extensible with plugins, and small enough not to notice.

  • 18.4k GitHub stars
  • 2.1m weekly downloads
  • 214 contributors

Get started in one line

Import, call, done. Output is sanitised unless you opt out.

  1. Install the package with your package manager.
  2. Import render.
  3. Pass it Markdown; it returns HTML.
// app.js
import { render } from "quillmark";

const html = render("# Hello *world*");
// <h1>Hello <em>world</em></h1>

Why Quillmark

  • Fast

    Parses the CommonMark spec in 4 ms on a laptop, about three times faster than the next parser we tested.

  • Safe by default

    Raw HTML is escaped and links are checked. You opt in to trust, not out.

  • Plugins

    Tables, footnotes, math and syntax highlighting as small optional plugins.

Time to parse the CommonMark spec (lower is better)
ParserTimeSize, gzipped
Quillmark 3.24.1 ms9 kB
Parser B12.8 ms31 kB
Parser C15.2 ms24 kB

Releases

Contribute and sponsor

Quillmark is maintained by four volunteers. Good first issues are labelled; every pull request gets a reply within a week.

    Backer

    $5 a month

    Your name in the README and our thanks.

    Sponsor

    $50 a month

    Your logo on the website and priority on issues.

    Company

    $500 a month

    Logo in the README and a quarterly call with maintainers.

    Release emails

    One email per minor release with what changed and how to upgrade. Nothing else.