marked

A markdown parser and compiler. Built for speed.

Github星跟踪图

Marked

npm
gzip size
install size
downloads
dep
dev dep
travis
snyk

  • ⚡ built for speed
  • ⬇️ low-level compiler for parsing markdown without caching or blocking for long periods of time
  • ⚖️ light-weight while implementing all markdown features from the supported flavors & specifications
  • ? works in a browser, on a server, or from a command line interface (CLI)

Demo

Checkout the demo page to see marked in action ⛹️

Docs

Our documentation pages are also rendered using marked ?

Also read about:

Installation

CLI: npm install -g marked

In-browser: npm install marked

Usage

CLI

$ marked -o hello.html
hello world
^D
$ cat hello.html
<p>hello world</p>

Browser

<!doctype html>
<html>
<head>
  <meta charset="utf-8"/>
  <title>Marked in the browser</title>
</head>
<body>
  <div id="content"></div>
  <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
  <script>
    document.getElementById('content').innerHTML =
      marked('# Marked in the browser\n\nRendered by **marked**.');
  </script>
</body>
</html>

License

Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)

主要指标

概览
名称与所有者markedjs/marked
主编程语言JavaScript
编程语言Makefile (语言数: 3)
平台
许可证Other
所有者活动
创建于2011-07-24 13:15:51
推送于2025-05-05 16:33:43
最后一次提交2025-05-05 10:33:41
发布数190
最新版本名称v15.0.11 (发布于 )
第一版名称v0.0.1 (发布于 )
用户参与
星数34.5k
关注者数391
派生数3.5k
提交数3.6k
已启用问题?
问题数1579
打开的问题数18
拉请求数1517
打开的拉请求数4
关闭的拉请求数431
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?