No renderer override — every built-in lights up. Headings, paragraphs, lists, code blocks, tables, blockquotes, and horizontal rules all render normally.
renderers and every built-in lights up — paragraphs, headings,
lists, code blocks, tables, blockquotes, rules.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 |
allowRenderersOnly whitelists a tight set of formatting renderers. Code blocks, tables, blockquotes, and horizontal rules drop entirely from the same markdown source.
allowRenderersOnly([...]) turns the renderer map into an allow-list. Anything
not in the list silently drops out.Svelte Markdown lets you control which renderers are active. This is useful for:
Use allowRenderersOnly to whitelist specific renderers:
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 |