RevealTheme logo

HTML转Markdown

将HTML转换回Markdown。适用于迁移从导出HTML的CMS中获取的内容。

# Title

Some **bold** text.

如何使用本工具

  1. 1

    Paste or type your HTML into the input textarea.

  2. 2

    Watch the Markdown output update live in the gray panel below as you edit.

  3. 3

    Select the converted Markdown and copy it into your editor or content file.

  4. 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.

常见问题

我所有的格式都能保留下来吗?
标准元素(标题、列表、链接、图片、加粗、斜体)能干净地转换。自定义HTML和行内样式会被移除或简化。

相关工具