Welcome to Acme Docs — rendered with safe-mdx (MDX without eval).
Authors write real MDX components: <Note>, <Steps>.
Steps
Install dependencies with
bun install.Start the dev server.
Open the preview in your browser.
Callouts
A standard note, written as an MDX <Note> component.
And a warning variant via <Note type="warning">.
Code
export function hello(name: string): string {
return `Hello, ${name}!`
}Links
A safe link and a blocked one — the second has its href stripped by the URL sanitizer.
Comparison
| Feature | directives | safe-mdx |
| Syntax | :::note | <Note> |
| Eval on workerd | n/a | none |
| Components | allowlisted | allowlisted |