remark-math@6.0.0 · LilScript port · @itslil/remark-math

Dollars,
to math nodes

This is not remark-math. It is a transformer that splits $inline$ and $$block$$ after parse. Official rows are the published plugin plus micromark-extension-math, then Terser and esbuild.

npm install @itslil/remark-math
Bytes over the wire, Brotli-11, against Terser of the official runtime graph smaller

Brotli-11 you ship, vs Terser
gzip-9 vs Terser
raw vs Terser
package tests

Official rows are one esbuild bundle of remark-math@6.0.0 plus the packages it needs at runtime, then Terser or esbuild. LilScript is not post-minified. The npm file is the Brotli-scored compile. Closed LilScript is the same source with extern_fields = false.

inlineMath math settings.math tree-shake

Measured in Node

Same work,
two runtimes.

Not Playwright — Node v22.21.1 on this machine, quiet median after warmup. Race 10× in the playground for a browser number. Package tests are green before any size row is a claim.

Lane median vs official

The compiled runtime, in the browser

Live
lab.

Left is the editor. Right is @itslil/remark-math output, or the official remark-math@6.0.0 graph when that lane is on.

The receipts

Raw, gzip,
and Brotli.

Official remark-math@6.0.0 bundled with its runtime graph, then Terser (mangle on/off) and esbuild minify. LilScript is not post-minified. Closed LilScript is Brotli with extern_fields = false.

Brotli-11

The wire number. LilScript row is the npm file.

LaneBrotli-11vs Terser

gzip-9

Same files, gzip-9.

Lanegzip-9vs Terser

Raw

Uncompressed bytes.

LaneRawvs Terser

All three

Every lane, measured three ways.

LaneRawgzip-9Brotli-11Brotli vs Terser

Why this surface. Comparing against a single published file would hide official dependencies. The fair fight is the runtime graph you actually import, then the same minifiers the JS ecosystem ships. Closed LilScript is the other honest comparison: no JavaScript options object, so those property names mangle.

README ↗

Zero runtime dependencies

Install the
current port.

npm install @itslil/remark-math