Admonitions (Callouts)
Admonitions are special blocks for notes, warnings, tips, and other highlighted content.Directive Syntax (Recommended)
Usingremark-directive with remarkDirectiveAdmonition:
source.config.ts
Supported Types
TheremarkDirectiveAdmonition plugin supports these types by default:
Custom Configuration
Customize admonition types and component names:source.config.ts
Legacy Syntax
Docusaurus-style syntax (deprecated, use directive syntax instead):Steps
Convert numbered headings into visual step sequences.Configuration
source.config.ts
Usage
Use numbered headings (e.g.,1. Step Name):
2. Configure Your Project
Create a configuration file:3. Start Building
You’re ready to create content!Code Tabs
Create tabbed interfaces for code examples in multiple languages or frameworks.Configuration
source.config.ts
Usage
Addtab="label" to consecutive code blocks:
Tabs (Generic)
General-purpose tabs component:MDX in Tab Labels
EnableparseMdx to use rich content in tab labels:
Features
Automatic Size Detection
Local and remote images get width/height automatically:Import-based Loading
Local images are imported for better bundler optimization:Blur Placeholder
Supported formats (from/packages/core/src/mdx-plugins/remark-image.ts:10):
External Images
Fetch and cache external image dimensions:Custom Headings
Generate heading IDs with custom slugs.Configuration
source.config.ts
Custom IDs
Override automatic slugs:TOC Generation
TOC data is attached tofile.data.toc:
Structured Data
Extract searchable content from your MDX.Configuration
source.config.ts
Output Format
From/packages/core/src/mdx-plugins/remark-structure.ts:27: