Markdown 转 HTML 转换器
将包含标题、列表、任务列表、表格、代码块、引用、链接和图片的 Markdown 转换为简洁的 HTML,可输出为片段或带样式的完整页面。出于安全考虑,原始 HTML 会被转义。
输入
提示:按 Ctrl + Enter 运行
已保存的设置
下方的详细帮助目前仅提供英文版。
关于此工具
Markdown is a quick way to write formatted text with plain characters (# for headings, * for lists, ** for bold) used in README files, notes apps, forums and documentation. Many places still need HTML, such as email templates, CMS fields and static pages.
This converter turns Markdown, including GitHub-style tables, task lists and fenced code blocks, into clean HTML. Choose an HTML fragment to paste into an existing page, or a complete page with simple styling. Any raw HTML in the input is escaped rather than passed through, so pasted content cannot inject scripts.
使用方法
- Paste or type your Markdown.
- Choose “fragment” to paste into a page or “page” for a complete HTML document.
- Run it and copy or download the HTML.
计算原理
The Markdown is parsed block by block (headings, paragraphs, lists, task lists, tables, block quotes, fenced code) and then inline (emphasis, code, links, images). Text is HTML-escaped; link URLs are restricted to safe schemes.
CommonMark-style blocks and inline formatting → HTML5计算示例
A traveller converts a short packing list written in Markdown: a level-two heading, two task-list items (one checked) and a two-column table. The fragment output is an <h2>, a <ul> with disabled checkboxes (Passport ticked, Charger not) and a <table> with a <thead> row, ready to paste into a blog post.
局限性
- No footnotes, math or diagram extensions.
- Raw HTML is not passed through.
- Styling in the full page is minimal.
最后更新:
常见问题
Which Markdown flavour is supported?
Common Markdown plus GitHub-style tables, task lists, strikethrough and fenced code.
Why is my HTML tag shown as text?
Raw HTML is escaped for safety; write it in Markdown instead.
Are code blocks highlighted?
They are wrapped in <pre><code> with a language class; add a highlighter on your page if you want colours.
故障排除
A list did not render.
Leave a blank line before the list.
The table is plain text.
Include the separator row of dashes under the header.
Line breaks are lost.
End a line with two spaces or leave a blank line between paragraphs.
隐私 & 免费使用
我的输入会被保存吗?
你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。
这个工具免费吗?
是的。无需注册或付费。