Monu Tools

Markdown 转 HTML 转换器

将 Markdown 转为 HTML,也可将 HTML 转回 Markdown,并提供实时预览。双向均可。

如何使用 Markdown / HTML

  1. 01

    选择方向:Markdown 转 HTML 或 HTML 转 Markdown。

  2. 02

    将你的内容输入或粘贴到输入框。

  3. 03

    复制转换后的输出,或对 Markdown 使用实时预览。

What it does

This is a two-way converter between Markdown and HTML. Turn Markdown into clean HTML to paste into a CMS, email or template, or convert existing HTML back into tidy Markdown for documentation and notes. A live preview shows the rendered result as you type.

What Markdown is

Markdown is a lightweight way to write formatted text using plain characters, # for a heading, * for emphasis, - for a list, so it stays readable as source and converts cleanly to HTML. It powers README files, many docs sites, chat apps and static blogs.

Which flavour is supported

The converter uses GitHub-Flavored Markdown, so headings, bold and italics, links, images, ordered and unordered lists, tables, blockquotes and fenced code blocks all convert as you would expect from GitHub or most modern Markdown tools.

A safe preview

The preview renders inside a sandboxed frame that cannot execute scripts, so even HTML containing embedded scripts is displayed safely. That matters when you paste HTML from an unknown source just to see or convert it.

Common uses

Common uses include drafting content in Markdown and exporting the HTML a platform needs, cleaning messy HTML from a page into readable Markdown, or simply checking how a snippet will render before publishing it.

Runs in your browser

Everything runs locally in your browser, which keeps it fast and private. The text you convert never leaves your device.

常见问题

支持哪种 Markdown 风格?

它使用 GitHub 风格的 Markdown,因此标题、列表、链接、表格、代码块和强调都会按预期转换。

预览安全吗?

安全。预览在无法运行脚本的沙箱框架内渲染,因此即使是含嵌入脚本的 HTML 也能安全显示。

我的内容会被上传到任何地方吗?

不会。转换完全在你的浏览器中运行,因此你的文本永远不会离开你的设备。

来源

嵌入此工具

将此工具添加到你自己的网站。复制下方代码片段即可,它会自动保持最新。

<iframe src="https://monu.tools/embed/zh/markdown-to-html" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

相关工具