logo svelte /markdown v1.5.0
FIG-001 · EXAMPLES INDEX
// examples / live demos

examples.

Hands-on demos of @humanspeak/svelte-markdown — live editors, agent / LLM streaming, HTML filtering, custom renderers, token caching, KaTeX, Mermaid, and more. Edit, copy, ship.

FIG-001
SHEET 01 / 02
FIG-002 / DEMOS

pick a demo.

Each page is a self-contained live example with the source you need to copy into your own project.

№ 01 / 13

live playground.

DEMO

Edit markdown in real-time and see it rendered instantly. Mix markdown with HTML tags.

№ 02 / 13

custom renderers.

RENDERERS

Override default renderers and control which markdown elements are rendered.

№ 03 / 13

html filtering.

SECURITY

Interactive demo of allow/deny controls for HTML tags within markdown.

№ 04 / 13

caching performance.

PERFORMANCE

Explore token caching and see the performance improvement on repeated renders.

№ 05 / 13

marked extensions.

EXTENSIONS

Live KaTeX math with the extensions prop. Try component renderers and snippet overrides.

№ 06 / 13

mermaid diagrams.

EXTENSIONS

Async Mermaid diagram rendering with a custom marked extension. Flowcharts, sequence diagrams, and more.

№ 07 / 13

github alerts.

EXTENSIONS

GitHub-style alert admonitions (NOTE, TIP, IMPORTANT, WARNING, CAUTION) with markedAlert.

№ 08 / 13

footnotes.

EXTENSIONS

Footnote references and definitions with bidirectional linking using markedFootnote.

№ 09 / 13

code formatting.

EXTENSIONS

Enhance code blocks with walkTokens extensions and snippet overrides — no custom renderers required.

№ 10 / 13

snippet overrides.

SNIPPETS

Customize rendering inline with Svelte 5 snippets. No separate component files needed.

№ 11 / 13

linked headings.

SNIPPETS

Add clickable anchor links to headings with snippet overrides or custom renderers.

№ 12 / 13

llm streaming.

STREAMING

Stream markdown and rich HTML from AI agents in real time. Adjustable speed, jitter, and chunk modes — XSS-safe by default.

№ 13 / 13

agent output.

STREAMING

Watch a simulated agent stream mixed markdown and HTML — with a live log of every javascript: URL and on*= handler the sanitizer blocks.

SET / JETBRAINS MONO + INTER
HUMANSPEAK · 2026
MIT LICENCE
try
the playgroundedit markdown live
SHEET 02 / 02
END OF INDEX
↩ HOME