跳到主要内容
uencoder

转换 Markdown to HTML

Render Markdown (headings, lists, 代码 blocks, tables, links) 为 HTML 为 display 在 browsers 或 email.

  1. 1

    Markdown 是 developer's lingua franca 为文档; HTML 是什么 browsers 渲染. Converting Markdown→HTML 具有 proper handling 的代码 blocks, tables, 和 inline formatting produces ready-to-发布内容.

  2. 2
    Markdown 转 HTML 转换器 →

    Paste Markdown. tool renders CommonMark plus extensions (tables, 任务 lists, strikethrough) 到 HTML. Code blocks get syntax highlighting classes.

  3. 3
    Markdown 表格转换器 →

    为 Markdown tables 具体而言, use 此 tool 到转换之间 Markdown 表 syntax 和 HTML <表> 或其他 formats.

  4. 4

    Sanitize HTML 输出之前 inserting 为 web page — raw Markdown 能够包含 <脚本> tags (inline HTML 是有效 Markdown). Use sanitizer (DOMPurify) 到允许仅 安全 tags 和 attributes.

常见问题

the converter 是否支持 GFM (GitHub Flavored Markdown)?
最多 converters 支持 GFM extensions: tables, 任务 lists ([x] syntax), strikethrough (~~), 和 autolinks. Check tool's options 到 enable/disable 特定 extensions 如果你 need strict CommonMark.
为什么是 my inline HTML passed 通过?
Markdown allows raw HTML inline — 此是 特性, 不 bug. <b>bold</b> 在 Markdown renders as <b>bold</b> 在 HTML. 此是 为什么 sanitization 是必要: <脚本>告警(1)</脚本> 在 Markdown becomes executable 脚本在 HTML.

解决此任务的工作流

相关工具