奔走も虚しく、技術・流通を手に入れた地霊殿は、兵器の開発に乗り出した。
その兵器の名は——
🧪 Working in Progress
SatoriGear is a blazing fast markdown parser with full incremental support that outputs MDAST.
It includes built-in support for GFM and MDC syntax and is fully compliant with the CommonMark specification. The plugin API is not yet public.
pnpm i satorigearimport { createParser } from "satorigear";
const parser = createParser({
features: {
attributes: true,
binding: true,
cjk: true,
component: true,
emoji: true,
footnote: true,
frontmatter: true,
math: true,
strikethrough: true,
table: true,
taskList: true,
},
});
// one-shot parse
const mdast = parser.parse("...");
// incremental edit
const document = parser.createDocument("...");
document.edit([
{ start: 66, end: 66, text: ":" },
{ start: 66, end: 66, text: "nuxt-img" },
]);
const mdast = document.tree;Benchmarked against Sätteri 0.11.6 and Remark (mdast-util-from-markdown@2.0.3), which also produce MDAST, with feature sets kept as equivalent as possible for each profile.
Median of 4 isolated mean-time runs at commit
7076a95on Apple M3, node 26.13.1, arm64-darwin. SatoriGear and Sätteri run in paired AB/BA order; comparisons are normalized to SatoriGear (↑ faster, ↓ slower). Lower time and higher throughput are better.
| Engine | Mean time | vs. SatoriGear | Throughput |
|---|---|---|---|
| SatoriGear | 342 µs | baseline | 571 MiB/s |
| Sätteri | 924 µs | ↓ 2.70× | 212 MiB/s |
| Remark | 60.7 ms | ↓ 177.36× | 3.22 MiB/s |
| Engine | Mean time | vs. SatoriGear | Throughput |
|---|---|---|---|
| SatoriGear | 320 µs | baseline | 44.4 MiB/s |
| Sätteri | 1.43 ms | ↓ 4.48× | 9.92 MiB/s |
| Remark | 25.2 ms | ↓ 78.64× | 0.56 MiB/s |
| Engine | Mean time | vs. SatoriGear | Throughput |
|---|---|---|---|
| SatoriGear | 8.20 ms | baseline | 106 MiB/s |
| Sätteri | 12.5 ms | ↓ 1.52× | 69.7 MiB/s |
| Engine | Mean time | vs. SatoriGear | Throughput |
|---|---|---|---|
| SatoriGear | 1.79 ms | baseline | 124 MiB/s |
| Sätteri | 2.65 ms | ↓ 1.48× | 83.7 MiB/s |