Extrem schneller Markdown-Compiler

Hochleistungs-Markdown-/MDX-Compiler, entwickelt mit Rust.
Bis zu 25-mal schneller als unified.

$npm install @unifast/node

Benchmark

Kompilierungszeit von Markdown zu HTML (ms). Niedriger ist besser.

120 lines
0.18ms
4.78ms
27x
560 lines
0.41ms
11.22ms
27x
2,000 lines
1.2ms
31.51ms
26x
unifastunified + remark + rehype

Die APIs, die Sie brauchen. Eingebaut.

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>

Funktionen

🦀Rust-basiert

Kern-Compiler in Rust geschrieben mit Zero-Copy-Parsing und Arena-Allokation.

🔋Alles inklusive

Über 20 integrierte Plugins: GFM, Mathematik, Emoji, Syntaxhervorhebung, frontmatter und mehr.

🌈Duale Highlight-Engines

Tree-sitter und syntect integriert. Bis zu 8-mal schneller als rehype-highlight.

⚛️MDX-Unterstützung

Erstklassige MDX-Kompilierung mit JSX- und Ausdrucks-Unterstützung.

Sponsoren