Toggle between default and filtered rendering to see how allowRenderersOnly controls which markdown features are active.
All Renderers Active
Every markdown feature is rendered: headings, paragraphs, links, code blocks, tables, blockquotes, horizontal rules, and lists.
Svelte Markdown lets you control which renderers are active. This is useful for:
Use allowRenderersOnly to whitelist specific renderers:
import { allowRenderersOnly } from '@humanspeak/svelte-markdown'
const renderers = allowRenderersOnly([
'paragraph', 'heading', 'text',
'strong', 'em', 'link'
])Check out the documentation for more details.
Tip: Disabled renderers simply won't render their content, keeping your output clean and predictable.
Here is a table for reference:
| Renderer | Description |
|---|---|
| paragraph | Basic text blocks |
| heading | h1-h6 elements |
| link | Anchor tags |
| codespan | Inline code |
| code | Code blocks |