Markdown 转 HTML Markdown to HTML Converter
把 Markdown 一键转换为 HTML,并提供实时预览、复制与下载,适合博客发布、公众号排版草稿、知识库文档整理。
Convert Markdown to clean HTML with preview, copy and download. Great for blogs, documentation, and content formatting.
1. 输入内容 · Input
3. 使用说明 · Notes
-
快速使用(推荐流程) · Quick workflow (recommended):
① 把 Markdown 粘贴到输入框 → ② 点击「转换」 → ③ 在右侧预览确认排版 → ④ 点击「复制 HTML」粘贴到博客编辑器。
Paste Markdown → Convert → Check preview → Copy HTML into your blog/editor. -
关于“段落”和“换行” · Paragraphs vs line breaks:
Markdown 通常以“空行”分段:两行之间空一行,才会形成新的段落(<p>)。
Markdown uses empty lines to separate paragraphs. Leave a blank line to create a new paragraph (<p>).
如果你从聊天软件或 PDF 复制,常出现“每行都有换行”的情况:可以切换到「硬换行」策略,把单行换行也转为 <br/>。
If your pasted text has a line break at every line, try “Hard breaks” to convert single line breaks into <br/>. -
安全模式建议 · Safety mode guidance:
默认开启「安全转义」会把 <div>、<script> 等视为普通文本,降低把不可信代码带入网页的风险。
Escape mode treats raw tags as plain text to reduce the risk of injecting untrusted code.
只有当你确认内容完全可信(例如你自己写的 HTML 片段),才建议关闭它。
Only disable it when the content is fully trusted (e.g., your own HTML snippets). -
输出两种模式 · Two output styles:
完整 HTML(Full document):适合直接保存成 .html 文件、发给别人或做独立页面。
Full document is great for saving as a standalone HTML file or publishing as a full page.
内容片段(Snippet):适合粘贴到 WordPress/Discuz/Notion 等编辑器。
Snippet output is ideal for pasting into WordPress/Discuz/Notion-like editors. -
支持的常用语法 · Supported syntax (practical subset):
#~#### 标题 Headings、- / 1. 列表 Lists、> 引用 Blockquote、“` 代码块 Code fence、` 行内代码 Inline code、
**加粗 Bold**、*斜体 Italic*、[文本](URL) 链接 Links、— 分隔线 HR。 -
SEO / 博客发布建议 · Publishing tips for blogs:
1) 标题层级尽量连续(H1 → H2 → H3),不要乱跳,有利于阅读与 SEO。
Keep heading hierarchy consistent (H1 → H2 → H3) for readability and SEO.
2) 列表适合写步骤、清单、要点;引用适合摘录或强调观点。
Lists are great for steps/checklists; blockquotes are great for citations or emphasis.
3) 代码块尽量写清语言(如 “`js),有些主题可高亮。
Specify code language when possible (e.g., “`js) for better highlighting on some themes.
免责声明:本工具仅在浏览器本地处理文本,不上传服务器;转换结果为排版用途参考,请自行检查敏感信息与平台兼容性。
Disclaimer: This tool runs locally in your browser and does not upload your content. Please review sensitive info and platform compatibility before publishing.
