remark-rehype@11.1.2 · LilScript port · @itslil/remark-rehype

mdast,
through rehype

Official remark-rehype@11.1.2 algorithms rewritten in LilScript. Upstream-derived and package tests 19/19. Not affiliated with upstream. Official rows are the published plugin plus mdast-util-to-hast, then Terser, Oxc and esbuild.

npm install @itslil/remark-rehype
Current LilScript versus minified original · portable ESM —smaller

—Brotli-11 you ship, vs smallest original
—gzip-9 vs smallest original
—raw vs smallest original
—current artifact checks

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.

transformer ✦ to-hast ✦ allowDangerousHtml ✦ tree-shake

The compiled runtime, in the browser

Live
lab.

Left is the editor. Right is @itslil/remark-rehype output, or the official remark-rehype@11.1.2 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/remark-rehype

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