Markdown Preview
Live Markdown preview with a lightweight renderer: headings, emphasis, code, tables, and task lists. Not a complete CommonMark or GFM implementation. Processing client-side.
Rendering is a lightweight subset: headings, emphasis, code, tables and task lists. Strikethrough, autolinks and fenced-code info strings are not implemented. Rendering is local, so a document cannot phone home.
Tool workspace
Start typing to see preview...
GitHub Flavored Markdown (subset)
Tables and task lists are supported; strikethrough, autolinks, and fenced-code info strings are not.
Mermaid Diagrams
Create flowcharts, sequence diagrams, and more using Mermaid syntax in code blocks.
Live Preview
Live preview updates as you type. No data sent to server.
Your Markdown content is processed locally in your browser. No data is sent to any server.
Reference: a real run, the parameters, and the failure modes
Worked example
A heading and a bold line
Input
## Local check
**No upload**Output
<h2>Local check</h2><br><br><strong>No upload</strong>How to verify: Switch to Preview: the first line is an H2 and the second is bold. The blank line becomes a br element because this renderer is line-based, not a full CommonMark block parser.
Parameters
| Parameter | Value | Default | Bound |
|---|---|---|---|
| Syntax | Headings, emphasis, code, tables, task lists, lists, quotes, rules, links, images | — | A lightweight GFM subset, not complete CommonMark |
| HTML | Escaped before rendering | — | Raw HTML and event handlers cannot execute |
| Links and images | http, https, mailto, tel, ftp, ftps, relative paths | — | Other schemes become # |
| Mermaid | Fenced mermaid block | — | Loaded on demand; syntax errors stay inside the block |
| Input size | No hard character cap | — | Very large documents can make preview and PDF slow |
| A4 portrait, rasterized preview | — | Text in the PDF is not selectable |
Failure checklist
| Symptom | Likely cause | What to do |
|---|---|---|
| Raw HTML shows up as text. | HTML is escaped by design. | Use Markdown syntax; unsanitized HTML is not passed through. |
| A table renders as plain text. | The header separator row is missing or malformed. | Add a line such as | --- | --- | under the header. |
| A link does nothing. | The URL uses a scheme outside the allow-list. | Use https:, mailto:, tel: or a relative path. |
| The Mermaid block shows an error. | The diagram source is invalid or the module failed to load. | Fix the diagram syntax; the rest of the preview still renders. |
| The PDF is blank or slow. | The preview had not finished, or the document is very large. | Wait for the preview, then export; split long documents. |
Use cases
- 1Preview GitHub Flavored Markdown before opening a pull request or publishing docs
- 2Render tables, task lists, and code blocks while writing README or release notes
- 3Check final formatting and export before sharing documentation
- 4Prototype Markdown for issue templates and project wikis
Frequently Asked Questions
Which Markdown syntax is supported?
A lightweight subset of GitHub Flavored Markdown: tables, fenced code blocks, and task lists. Strikethrough and autolinks are not implemented, and the fenced-code info string is not preserved.
Can I export the result?
Yes. Export the preview as a PDF, or copy the Markdown source to paste wherever you need it.
Does it process my content on a server?
No. The preview renders locally in your browser.
Can raw HTML in Markdown execute scripts?
Raw HTML is escaped before the preview is built, and link and image URLs are restricted to protocols such as https, mailto, and tel. The rendered preview therefore cannot execute embedded scripts or event handlers.
What happens when a Mermaid diagram fails?
The diagram block shows the error instead of leaving a blank area, and the rest of the document keeps rendering. One broken diagram does not hide the surrounding sections.
Related Guides
Related Tools
You are responsible for key management and output validation.