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 會原樣輸出。在轉譯使用者內容之前,請先進行淨化處理。

相關工具