압도적으로 빠른 Markdown 컴파일러

Rust 로 구축된 고성능 Markdown / MDX 컴파일러.
unified 보다 최대 25배 빠릅니다 .

$npm install @unifast/node

벤치마크

Markdown 에서 HTML 로의 컴파일 시간 (ms). 값이 낮을수록 빠릅니다.

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

필요한 API 를 모두 내장했습니다.

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 기반

코어 컴파일러는 Rust 로 작성되었으며, 제로 카피 파싱과 아레나 할당을 사용합니다.

🔋올인원 구성

GFM, 수식, 이모지, 구문 하이라이팅, frontmatter 등 20여 개의 플러그인을 기본 내장합니다.

🌈듀얼 하이라이트 엔진

Tree-sitter 와 syntect 를 내장했습니다. rehype-highlight 보다 최대 8배 빠릅니다.

⚛️MDX 지원

JSX 와 표현식을 지원하는 최상급 MDX 컴파일 기능을 제공합니다.

스폰서