百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

marked

> 编程语言
开源

一个 Markdown 解析器和编译器。专为提高速度而构建。

37.0K stars0 点赞4 次浏览
访问官网GitHub

工具介绍

一个 Markdown 解析器和编译器。专为提高速度而构建。

">https://marked.js.org">

(原始内容存档于2019-09-29) (英语). 只支持[当前和LTS] (https://nodejs.org/en/about/releases/) Node.js版本. Node.js版本在任何时刻都可能与Marked不相容.

** 浏览器:** [广泛可用] (https://developer.mozilla.org/en-US/docs/Glossary/Baseline/Compatibility)

□ 安装

** CLI:**

(原始内容存档于2019-09-29) (英语). ```sh npm install -g marked


** 浏览器:**

ZZ1ZZ

□ 使用量

QQ警告:QQ标记不[ sanitize] (ZZURL8Z) 输出 HTML. 请使用一个消毒库, 如 [DOMPurify] (https://github.com/cure53/DOMPurify) (推荐), [sanitize-html] (https://github.com/apostrophecms/sanitize-html) 或 [正常] (https://github.com/bevacqua/insane) 在 *output * HTML! * * *上!

(原始内容存档于2019-09-29). ```
DOMPurify.sanitize(marked.parse(``));

** CLI **

ZZCODE3 乐团

(原始内容存档于2019-09-26). ```bash

Print all options

$ marked --help


** Node.js** (韩语).

ZZCODE5 乐团

** 浏览器**

```html
<!doctype html>
<html>
<head>
  <meta charset="utf-8"/>
  <title>在浏览器中标记</title>
</head>
<body>
  <script src="https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js"></script>"></script>
  <script>
    document.getElementById('content').innerHTML =
      marked.parse('# Marked in the browser');
  </script>
</body>
</html>

Issues· 24 开放

查看全部 Issues在 GitHub 打开
  • #4112

    CLI -- 具有空值的字符串意外地读取 stdin

    更新于 2026年9月26日
  • #4099

    emStrong 与未匹配的强调分隔符数量成正比 (12 KB 的输入需要 ~16 秒)

    L2 - annoying更新于 2026年9月20日
  • #4085

    改进表格渲染

    works as intended更新于 2026年9月5日
  • #4050

    按根本原因分组的 CommonMark 规范差距,以及有关查找表的问题

    更新于 2026年9月4日
  • #3996

    错误: 架构与 CommonMark 规范有偏差

    L2 - annoying更新于 2026年8月1日
  • #3974

    增强: 添加 TypeScript 通用类型支持,用于自定义渲染器返回类型

    proposal更新于 2026年5月16日
  • #3844

    让 walkTokens 以多个 token 替换当前 token

    proposal更新于 2025年12月13日
  • #3590

    选择扩展优先级

    proposal更新于 2025年1月18日
  • #3435

    支持自定义扩展"中断"内置令牌

    proposal更新于 2024年9月7日
  • #2355

    在 Marked 的主要版本之间测量的性能下降,需要多长时间才能通过性能测试?

    proposal更新于 2022年3月1日

> 标签

JavaScriptcommonmarkcompilergfmhacktoberfest

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月30日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言