Markdown 和 HTML 双向转换

特别用于 Wordpress 内容发表、HTML 网页生成等场景;适合将 ChatGPT、Claude、Perplexity 等 AI 工具的输出转换为 HTML 格式。

Markdown 输入

HTML 输出

<h1>Sample Markdown</h1> <p>This is some basic, sample markdown.</p> <h2>Second Heading</h2> <ul> <li>Unordered lists, and:</li> </ul> <ol> <li>One</li> <li>Two</li> <li>Three</li> </ol> <ul> <li>More</li> </ul> <blockquote> <p>Blockquote</p> </blockquote> <p>And <strong>bold</strong>, <em>italics</em>, and even <em>italics and later <strong>bold</strong></em>. Even <del>strikethrough</del>. <a href="https://md2html.com">A link</a> to somewhere.</p> <p>And code highlighting:</p> <pre><code class="language-js">var foo = &#39;bar&#39;; function baz(s) { return foo + &#39;:&#39; + s; } </code></pre> <p>Or inline code like <code>var foo = &#39;bar&#39;;</code>.</p> <p>Or an image of logo</p> <p><img src="https://md2html.com/images/logo.png" alt="MD2HTML"></p> <p>The end ...</p>

Sample Markdown

This is some basic, sample markdown.

Second Heading

  • Unordered lists, and:
  1. One
  2. Two
  3. Three
  • More

Blockquote

And bold, italics, and even italics and later bold. Even strikethrough. A link to somewhere.

And code highlighting:

var foo = 'bar';

function baz(s) {
   return foo + ':' + s;
}

Or inline code like var foo = 'bar';.

Or an image of logo

MD2HTML

The end ...