Fumadocs
Comparison Criteria

Markdown Extensions

Fumadocs MDX syntax highlighting and package tabs plus configured KaTeX math.

Result

Fumadocs MDX's default preset includes documentation-focused heading, search, image, code, and package-install processing. This sample adds the officially documented remark-math and rehype-katex integration.

Syntax-highlighted code

route-shape.ts
const route = (framework: string, locale: 'en' | 'ja') =>
  `/docfw-cmp/${framework}/${locale}/`;

Bun command

bun add fumadocs-core

The repository keeps executable examples Bun-only while retaining Fumadocs' syntax highlighting and documentation-focused code-block processing.

Math

Inline math: E=mc2E = mc^2.

Display math:

∑k=1nk=n(n+1)2\sum_{k=1}^{n} k = \frac{n(n+1)}{2}

Math is an integration, not an unconfigured core feature.

On this page