LogoPDFuck
LogoPDFuck
Markdown
2025/03/05

Markdown

How to write documents

Introduction

Fumadocs provides many useful extensions to MDX, a markup language. Here is a brief introduction to the default MDX syntax of Fumadocs UI.

MDX is not the only supported format of Fumadocs. In fact, you can use any renderers such as

next-mdx-remote
or CMS.

Markdown

We use GFM (GitHub Flavored Markdown), a superset of Markdown (CommonMark). See GFM Specification.

# Heading ## Heading ### Heading #### Heading Hello World, **Bold**, _Italic_, ~~Hidden~~ ```js console.log('Hello World'); ``` 1. First 2. Second 3. Third - Item 1 - Item 2 > Quote here ![alt](/image.png) | Table | Description | | ----- | ----------- | | Hello | World |

Auto Links

Internal links use the

next/link
component to allow prefetching and avoid hard-reload.

External links will get the default

rel="noreferrer noopener" target="_blank"
attributes for security.

[My Link](https://github.github.com/gfm) This also works: https://github.github.com/gfm.

MDX

MDX is a superset of Markdown, with support of JSX syntax. It allows you to import components, and use them right in the document, or even export values.

import { Component } from './component'; <Component name="Hello" />

see MDX Syntax to learn more.

Cards

Useful for adding links, it is included by default.

<Cards> <Card href="https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating" title="Fetching, Caching, and Revalidating" > Learn more about caching in Next.js </Card> </Cards>

Fetching, Caching, and Revalidating

Learn more about caching in Next.js

Icon

You can specify an icon to cards.

import { HomeIcon } from 'lucide-react'; <Cards> <Card icon={<HomeIcon />} href="/" title="Home"> Go back to home </Card> </Cards>

Go back to home

The home page of Fumadocs.

Without href

<Cards> <Card title="Fetching, Caching, and Revalidating"> Learn more about `fetch` in Next.js. </Card> </Cards>

Fetching, Caching, and Revalidating

Learn more about

fetch
in Next.js.

Callouts

Useful for adding tips/warnings, it is included by default.

<Callout>Hello World</Callout>
Hello World

Title

Specify a callout title.

<Callout title="Title">Hello World</Callout>

Title

Hello World

Types

You can specify the type of callout.

  • info
    (default)
  • warn
  • error
<Callout title="Title" type="error"> Hello World </Callout>

Title

Hello World

Customise Components

See all MDX components and available options.

Headings

An anchor is automatically applied to each heading, it sanitizes invalid characters like spaces. (e.g.

Hello World
to
hello-world
)

# Hello `World`

TOC Settings

The table of contents (TOC) will be generated based on headings, you can also customise the effects of headings:

# Heading [!toc] This heading will be hidden from TOC. # Another Heading [toc] This heading will **only** be visible in TOC, you can use it to add additional TOC items. Like headings rendered in a React component: <MyComp />

Custom Anchor

You can add

[#slug]
to customise heading anchors.

# heading [#my-heading-id]

You can also chain it with TOC settings like:

# heading [toc] [#my-heading-id]

To link people to a specific heading, add the heading id to hash fragment:

/page#my-heading-id
.

Frontmatter

We support YAML frontmatter. It is a way to specify common information of the document (e.g. title). Place it at the top of document.

--- title: Hello World --- ## Title

See Page Conventions for a list of properties available for frontmatter.

Codeblock

Syntax Highlighting is supported by default using Rehype Code.

```js console.log('Hello World'); ```

You can add a title to the codeblock.

```js title="My Title" console.log('Hello World'); ```

Highlight Lines

You can highlight specific lines by adding

[!code highlight]
.

```tsx <div>Hello World</div> // [\!code highlight] <div>Hello World</div> <div>Goodbye</div> <div>Hello World</div> ```

Highlight Words

You can highlight a specific word by adding

[!code word:<match>]
.

```js // [\!code word:config] const config = { reactStrictMode: true, }; ```

Diffs

```ts console.log('hewwo'); // [\!code --] console.log('hello'); // [\!code ++] ```
console.log('hewwo'); console.log('hello');

Tab Groups

You can use code blocks with the

<Tab />
component.

import { Tab, Tabs } from 'fumadocs-ui/components/tabs'; <Tabs items={['Tab 1', 'Tab 2']}> <Tab value='Tab 1'> ```ts console.log('A'); ``` </Tab> <Tab value='Tab 2'> ```ts console.log('B'); ``` </Tab> </Tabs>

Note that you can add MDX components instead of importing them in MDX files.

console.log('A');
console.log('B');

Using Typescript Twoslash

Write Typescript codeblocks with hover type information and detected types errors.

Not enabled by default. See Twoslash.

Images

All built-in content sources handle images properly. Images are automatically optimized for

next/image
.

![Image](/image.png)

Image

Optional

Some optional plugins you can enable.

Math Equations

Write math equations with TeX.

```mdx f(x) = x * e^{2 pi i \xi x} ```
f(x) = x * e^{2 pi i \xi x}

To enable, see Math Integration.

Package Install

Generate code blocks for installing packages via package managers (JS/Node.js).

```mdx npm i next -D ```
npm i next -D

To enable, see Remark Install.

More

You can see a list of plugins supported by Fumadocs.

모든 게시물

작성자

avatar for Mkdirs
Mkdirs

카테고리

  • Company
  • News
IntroductionMarkdownAuto LinksMDXCardsIconWithout hrefCalloutsTitleTypesCustomise ComponentsHeadingsTOC SettingsCustom AnchorFrontmatterCodeblockHighlight LinesHighlight WordsDiffsTab GroupsUsing Typescript TwoslashImagesOptionalMath EquationsPackage InstallMore

더 많은 게시물

What is Fumadocs
CompanyProduct

What is Fumadocs

Introducing Fumadocs, a docs framework that you can break.

avatar for Fox
Fox
2025/04/01
Comparisons
CompanyNews

Comparisons

How is Fumadocs different from other existing frameworks?

avatar for Fox
Fox
2025/03/22
Quick Start
CompanyNews

Quick Start

Getting Started with Fumadocs

avatar for MkSaaS
MkSaaS
2025/03/28
LogoPDFuck

브라우저 기반 묣�료 PDF 도구 - 100% 프라이빗하고 안전

정리
  • PDF 병합
  • PDF 분할
  • PDF 회전
  • 페이지 재정렬
  • 페이지 추출
  • 페이지 삭제
  • PDF 역순
  • 페이지 복제
변환
  • PDF를 PNG로 변환 + 긴 이미지
  • PDF를 JPG로 변환 + 긴 이미지
  • PDF를 WebP로 변환 + 긴 이미지
  • PNG를 PDF로 변환
  • JPG를 PDF로 변환
  • WebP를 PDF로 변환
  • PDF를 텍스트로 변환
  • BMP를 PDF로 변환
  • GIF를 PDF로 변환
  • SVG를 PDF로 변환
  • PDF를 Word로 변환
  • PDF를 Excel로 변환
  • PDF를 PPTX로 변환
  • Word를 PDF로 변환
  • Excel를 PDF로 변환
  • PPTX를 PDF로 변환
편집
  • PDF 압축
  • 워터마크 추가
  • 페이지 번호 추가
  • 메타데이터 편집
  • PDF 자르기
  • PDF 평탄화
  • 머리글/바닥글
  • PDF 크기 조정
보안
  • PDF 서명
  • PDF 잠금 해제
  • PDF 보호
  • PDF 비교
  • PDF 편집
  • PDF OCR
  • PDF 살균
  • PDF 검증
© 2026 PDFuck All Rights Reserved.