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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?