HTML转Markdown
将HTML转换回Markdown。适用于迁移从导出HTML的CMS中获取的内容。
# Title Some **bold** text.
如何使用本工具
- 1
Paste or type your HTML into the input textarea.
- 2
Watch the Markdown output update live in the gray panel below as you edit.
- 3
Select the converted Markdown and copy it into your editor or content file.
- 4
Spot-check the result and hand-fix anything the converter dropped, such as images or tables.
什么是HTML转Markdown?
在不同平台之间迁移内容时,将HTML转换为Markdown是很常见的操作:例如,从WordPress(HTML)导出内容,以便导入到静态网站生成器(Markdown)中。本工具可处理常见的元素;带有自定义HTML的复杂布局通常需要手动清理。
常见使用场景
Quickly turn a copied HTML paragraph from a web page into Markdown for a README or blog post.
Draft Markdown documentation from small HTML snippets without installing a Node toolchain.
Strip the tag soup out of pasted rich text down to clean headings, bold, and links.
Prototype a content migration to see roughly how an HTML article maps to Markdown before scripting it.
Convert a simple HTML bulleted list into Markdown dashes for a checklist or issue body.
Teach or demonstrate the relationship between HTML elements and their Markdown equivalents.
常见问题
我所有的格式都能保留下来吗?▼
相关工具
字数与字符计数工具
在线统计任意文本的字数、字符数、句子数、段落数及阅读时间。随你输入而实时更新。
阅读时间计算器
估算阅读任意文本所需的时间。可在休闲阅读(200词/分)、技术阅读(150词/分)或快速阅读(400词/分)之间选择。
标题分析工具
根据互动潜力为博客文章标题打分。统计有力词、情感词、长度和清晰度。
邮件主题行评测器
根据潜在打开率为邮件主题行打分。检查长度、垃圾邮件触发词和紧迫感标记。
Markdown转HTML
将Markdown文本转换为HTML。支持CommonMark以及GitHub扩展(表格、删除线、任务列表)。
Twitter / X字符计数工具
为Twitter/X帖子统计字符数。由于Twitter的t.co缩短机制,URL会自动计为23个字符。