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 레퍼런스를 바로 확인해 보세요.