RevealTheme logo

Markdown转HTML

将Markdown文本转换为HTML。支持CommonMark以及GitHub风格的扩展(表格、删除线、任务列表)。

Hello

This is bold and italic.

<p><h1>Hello</h1></p><p>This is <strong>bold</strong> and <em>italic</em>.</p>

如何使用本工具

  1. 1

    Type or paste your Markdown into the input on the left.

  2. 2

    Watch the rendered preview and the generated HTML update live.

  3. 3

    Copy the HTML to drop into a web page, CMS field, or email template.

什么是Markdown转HTML?

Markdown是最流行的轻量级标记语言:GitHub的README、Stack Overflow、Discord以及大多数博客平台都在使用它。将Markdown转换为HTML几乎是所有静态站点生成器中的一个构建步骤。本工具使用兼容CommonMark的解析器,并支持GitHub风格的扩展。

常见使用场景

  • Turn a heading-and-paragraph draft into HTML for a CMS field that only accepts an HTML body.

  • Convert simple notes or documentation written in Markdown into HTML for an email or knowledge base.

  • Preview exactly what HTML your basic Markdown produces before pasting it into a page.

  • Generate quick HTML snippets from Markdown you wrote in your editor.

  • Teach or debug Markdown by seeing the precise tags each piece of syntax emits.

  • Produce clean inline HTML for a landing-page section without hand-writing the tags.

常见问题

它支持哪种Markdown变体?
CommonMark加上GFM扩展:表格、删除线、任务列表和自动链接。
输出经过净化处理了吗?
没有:你Markdown中的原始HTML会原样输出。在渲染用户内容之前,请先进行净化处理。

相关工具