跳到主要内容

Markdown 转 HTML

UpBox优盒工具箱,免费 Markdown 转 HTML 工具,实时渲染标题、表格、代码块与任务列表,可查看 HTML 源码、复制或下载页面,本地处理。

无需注册 · 数据不上传No sign-up · nothing uploaded

Markdown 原文Markdown

渲染结果Output

渲染结果会显示在这里
字符数0
行数0
输入 Markdown 后自动渲染
本工具所有运算在本地浏览器完成,你的文件、文本不会上传到服务器

工具介绍

Markdown 转 HTML 在浏览器里实时完成:左栏写 Markdown,右栏立即看到排版结果,也可以切到 HTML 源码查看生成的标签。 Markdown is rendered to HTML live in the browser: write on the left, see the typeset result on the right, or switch to the HTML source tab to inspect the generated tags.

支持 GitHub 风格表格、代码块、任务列表、引用与图片;渲染结果会先过滤脚本等危险标签,再显示与导出。 GitHub-style tables, code blocks, task lists, blockquotes and images all work. Scripts and other unsafe tags are stripped before anything is previewed or exported.

  • 实时渲染Live rendering
  • 表格与代码块Tables and code blocks
  • 预览 / 源码双标签Preview and source tabs
  • 危险标签过滤Unsafe tags stripped
  • 复制与下载 HTMLCopy and download HTML

使用说明

  1. 在左栏输入或粘贴 Markdown。Type or paste Markdown on the left.
  2. 右栏自动渲染,可切到“HTML 源码”核对标签。The right side renders automatically; switch to HTML source to check tags.
  3. 点“复制 HTML”粘到自己的项目里。Copy the HTML into your own project.
  4. 需要独立文件时点“下载 HTML”,得到 markdown.html。Download HTML when you need a standalone markdown.html.

常见问题

支持哪些 Markdown 语法?Which Markdown features are supported?
CommonMark 基础语法,加上 GitHub 风格的表格、任务列表、删除线与围栏代码块。CommonMark basics plus GitHub-style tables, task lists, strikethrough and fenced code blocks.
预览里能执行脚本吗?Can scripts run in the preview?
不能。渲染结果经 DOMPurify 过滤,脚本、内联事件等危险内容会被移除。No. The output is sanitized with DOMPurify, which removes scripts and inline event handlers.
下载的 HTML 是整页吗?Is the downloaded HTML a full page?
是。文件包含基础排版样式,双击即可在浏览器中查看,也可再并入自己的站点。Yes. It ships with basic typography styles, opens directly in a browser, and can be merged into your site.
图片能直接显示吗?Do images display?
网络图片地址可以直接渲染;本地图片需要先上传到可访问的位置。Remote image URLs render directly; local images need to be hosted somewhere reachable.
广告位

此处为广告位,可放置你的推广素材

支持图片、文字或 HTML 代码,替换本区块内容即可投放

浏览其他分类