mdast-util-from-markdown@2.0.3 · LilScript port · @itslil/mdast-util-from-markdown

Markdown,
to mdast

Official mdast-util-from-markdown@2.0.3 algorithms rewritten in LilScript. Official test suite 724/724. Not affiliated with upstream. Official rows are the published package plus micromark, then Terser and esbuild.

npm install @itslil/mdast-util-from-markdown
Current LilScript versus minified original · portable ESM —smaller

—Brotli-11 you ship, vs smallest original
—gzip-9 vs smallest original
—raw vs smallest original
—official suite

Raw, gzip and Brotli each use a separate LilScript compilation targeting that objective. The original uses the same export and dependency boundary, then a JavaScript minifier.

mdast ✦ commonmark ✦ definitions ✦ extensions ✦ tree-shake

The compiled runtime, in the browser

Live
lab.

Left is the editor. Right is @itslil/mdast-util-from-markdown output, or the official mdast-util-from-markdown@2.0.3 graph when that lane is on.

Current library · original minified

Three objectives.
Measured separately.

Same machine · sequential builds

Build time.

Zero runtime dependencies

Install the
current port.

npm install @itslil/mdast-util-from-markdown

Download the checked repository package · Package files, hashes and validation. npm publication is independent.