Learning ladder

Learn quikdown by building, one example at a time.

Four tracks. Sixteen examples. From a 10-line "render markdown to HTML" snippet to a fully headless editor wired to your own app shell. Work top-to-bottom or jump in anywhere.

1

Parser — quikdown core

9.8 KB · zero deps · XSS-safe

Start here if you only need to render markdown to HTML — chat messages, blog posts, README previews, LLM output. The parser is the smallest layer of the stack: a single function that takes a markdown string and returns safe HTML. These four examples walk you from a five-line "hello world" to a custom fence plugin and runtime themes.

2

Bidirectional — quikdown_bd

14.6 KB · HTML ↔ Markdown

Move up a layer when you need to go both directions: render markdown to HTML, let the user edit the HTML in a contenteditable region, then convert it back to markdown. quikdown_bd annotates the HTML with data-qd-* attributes so the round trip preserves formatting, fences, and tables. This is the engine behind quikdown_edit — and you can build your own editor on top of it.

Standalone — offline editor

zero network dependencies

A single-file editor bundle (~3.8 MB minified) with all fence renderers built in: highlight.js, Mermaid diagrams, DOMPurify HTML sanitization, Leaflet GeoJSON maps, and Three.js STL 3D rendering. No CDN requests, no lazy loading — works fully offline and in air-gapped environments.