Welcome to Acme Docs — rendered with safe-mdx (MDX without eval).

Authors write real MDX components: <Note>, <Steps>.

Steps

  1. Install dependencies with bun install.

  2. Start the dev server.

  3. 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}!`
}

A safe link and a blocked one — the second has its href stripped by the URL sanitizer.

Comparison

Featuredirectivessafe-mdx
Syntax:::note<Note>
Eval on workerdn/anone
Componentsallowlistedallowlisted
Astro island count: 0