Rust で構築された高性能 Markdown / MDX コンパイラ。
unified より最大 25倍高速 。
$npm install @unifast/node
Markdown から HTML へのコンパイル時間 (ms)。低いほど高速です。
import { compile } from "@unifast/node";
const result = compile("# Hello\n\nThis is **unifast**.");
console.log(result.output);
// <h1 id="hello">Hello</h1>
// <p>This is <strong>unifast</strong>.</p>コアコンパイラは Rust で書かれており、ゼロコピーパースとアリーナアロケーションを採用しています。
GFM、数式、絵文字、シンタックスハイライト、frontmatter など 20 以上のプラグインを内蔵。
Tree-sitter と syntect を内蔵。rehype-highlight より最大 8 倍高速。
JSX と式に対応した第一級の MDX コンパイル。
ドキュメントを読むか、API リファレンスを覗いてみましょう。