Markdown
Renders untrusted markdown from agents or users.
Installation
Once per app, set up Aedis UI. The CLI verifies the signed release before writing anything and pins every dependency:
npx @aedis/cli@0.1.0 initImport the theme once in your global CSS, after Tailwind:
app/globals.css
@import "tailwindcss";@import "./styles/aedis-theme.css";Then add the component:
npx @aedis/cli@0.1.0 add markdown# pnpm dlx @aedis/cli@0.1.0 add markdown · yarn dlx @aedis/cli@0.1.0 add markdown · bunx @aedis/cli@0.1.0 add markdownProps
| Prop | Type | Default | Description |
|---|---|---|---|
| children | string | — | The markdown. |
| allowImages | boolean | false | Render images. Off by default: image URLs leak the reader's IP and read receipts. |
Security
- Raw HTML is never rendered (no rehype-raw).
- Only http, https, mailto and relative URLs survive; javascript:, data: and others become plain text.
- External links open in a new tab with rel="noopener noreferrer".