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 / 14

live playground.

DEMO

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

№ 02 / 14

custom renderers.

RENDERERS

Override default renderers and control which markdown elements are rendered.

№ 03 / 14

html filtering.

SECURITY

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

№ 04 / 14

caching performance.

PERFORMANCE

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

№ 05 / 14

marked extensions.

EXTENSIONS

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

№ 06 / 14

reactive extensions.

EXTENSIONS

Dynamically rebuild marked extensions from Svelte state without appending duplicate extensions.

№ 07 / 14

mermaid diagrams.

EXTENSIONS

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

№ 08 / 14

github alerts.

EXTENSIONS

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

№ 09 / 14

footnotes.

EXTENSIONS

Footnote references and definitions with bidirectional linking using markedFootnote.

№ 10 / 14

code formatting.

EXTENSIONS

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

№ 11 / 14

snippet overrides.

SNIPPETS

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

№ 12 / 14

linked headings.

SNIPPETS

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

№ 13 / 14

llm streaming.

STREAMING

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

№ 14 / 14

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