Markdown Live Preview
Write Markdown and see the rendered HTML update live, then export or print to PDF.
Loading tool…
浏览器内运行这个工具能做什么
Render Markdown into sanitized HTML while you type, inspect the generated source, and track word, character, and estimated reading-time totals. Download a self-contained HTML document shell or open the browser print dialog to save the current preview as PDF.
The generated markup is sanitized with DOMPurify before it enters the preview or export, and the HTML source remains visible so you can review what will be copied or downloaded.
Sanitization removes dangerous markup but does not make every destination URL trustworthy; remote images can still make browser requests and downloaded HTML should be reviewed before publishing.
这个工具可以完成什么
Check heading structure, code fences, tables, links, and task lists before committing Markdown to a repository.
Draft a scannable change summary, monitor its approximate reading time, and export a review copy for non-Markdown stakeholders.
Compare source Markdown with sanitized HTML before pasting it into a CMS, email tool, or documentation pipeline.
依赖结果前需要检查什么
- Performance and maximum practical input size depend on browser memory, device speed, and the structure of the input.
- Review the generated result before replacing or publishing an original file.
如何使用
- 1
Type or paste Markdown in the left pane.
- 2
Review the live HTML preview and stats.
- 3
Inspect the sanitized HTML source, especially links and remote media references.
- 4
Download the HTML file or use the browser's print dialog to save the rendered view as PDF.
使用场景
Check heading structure, code fences, tables, links, and task lists before committing Markdown to a repository.
Draft a scannable change summary, monitor its approximate reading time, and export a review copy for non-Markdown stakeholders.
Compare source Markdown with sanitized HTML before pasting it into a CMS, email tool, or documentation pipeline.
使用技巧
A Markdown image that points to another host can trigger a browser request when rendered. Remove tracking URLs or use trusted local assets when privacy matters.
The displayed value assumes roughly 200 whitespace-separated words per minute and does not account for code, diagrams, or audience familiarity.
The HTML export includes the sanitized body and a basic stylesheet. Check links, layout, fonts, and destination-specific CSS before distribution.
常见问题
Is the HTML safe?
Rendered HTML is sanitized with DOMPurify before insertion, so scripts and other dangerous tags are stripped.
Does the PDF export run on a server?
No. We open a print preview in a new tab; your browser produces the PDF locally.
What Markdown features are supported?
Standard CommonMark plus GFM tables, task lists, fenced code, and autolinks via the marked parser.
Does sanitization validate links and remote images?
No. It removes unsafe HTML constructs, but you must still review destination URLs. A permitted remote image URL may be requested by the browser when the preview renders.
What is included in the downloaded HTML?
The download contains a complete HTML document with the sanitized rendered body and a small built-in stylesheet. It does not bundle remote images, fonts, or linked assets.
下一步常用工具
如果还需要校验、转换或复用结果,可以继续打开相近的浏览器本地工具。