https://github.com/markedjs/marked
A markdown parser and compiler. Built for speed.
Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
4 of 198 committers (2.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.0%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
A markdown parser and compiler. Built for speed.
Basic Info
- Host: GitHub
- Owner: markedjs
- License: other
- Language: TypeScript
- Default Branch: master
- Homepage: https://marked.js.org
- Size: 10 MB
Statistics
- Stars: 35,467
- Watchers: 391
- Forks: 3,462
- Open Issues: 13
- Releases: 157
Topics
Metadata Files
README.md
Marked
- ⚡ 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:
Compatibility
Node.js: Only current and LTS Node.js versions are supported. End of life Node.js versions may become incompatible with Marked at any point in time.
Browser: Not IE11 :)
Installation
CLI:
sh
npm install -g marked
In-browser:
sh
npm install marked
Usage
Warning: 🚨 Marked does not sanitize the output HTML. Please use a sanitize library, like DOMPurify (recommended), sanitize-html or insane on the output HTML! 🚨
DOMPurify.sanitize(marked.parse(`<img src="x" onerror="alert('not happening')">`));
CLI
``` bash
Example with stdin input
$ marked -o hello.html hello world ^D $ cat hello.html
hello world
``````bash
Print all options
$ marked --help ```
Browser
html
<!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/lib/marked.umd.js"></script>
<script>
document.getElementById('content').innerHTML =
marked.parse('# Marked in the browser\n\nRendered by **marked**.');
</script>
</body>
</html>
or import esm module
html
<script type="module">
import { marked } from "https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js";
document.getElementById('content').innerHTML =
marked.parse('# Marked in the browser\n\nRendered by **marked**.');
</script>
License
Copyright (c) 2011-2022, Christopher Jeffrey. (MIT License)
Owner
- Name: Marked
- Login: markedjs
- Kind: organization
- Website: https://marked.js.org
- Repositories: 14
- Profile: https://github.com/markedjs
Committers
Last synced: 8 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| dependabot[bot] | 4****] | 902 |
| Tony Brix | t****y@b****a | 588 |
| Christopher Jeffrey | c****y@g****m | 455 |
| Josh Bruce | j****h@j****m | 160 |
| Federico Soave | f****r@g****m | 158 |
| Steven | s****n@c****m | 131 |
| semantic-release-bot | s****t@m****t | 128 |
| MarkedJS bot | 102 | |
| Travis-CI | t****s@t****g | 58 |
| Trevor Buckner | c****d@g****m | 45 |
| Ivan Demidov | S****m@l****u | 25 |
| Josh Bruce | j****h@8****o | 25 |
| x13machine | b****2@g****m | 25 |
| aprotim | g****m@x****t | 15 |
| Martii | m****i | 13 |
| Randolf C | 3****f | 12 |
| Hsiaoming Yang | l****e@m****m | 11 |
| Jamie Davis | d****m@v****u | 10 |
| Vse Mozhet Byt | v****t@g****m | 9 |
| Tom Theisen | t****n@g****m | 8 |
| KT | k****s@g****m | 8 |
| Костя Третяк | k****a@g****m | 7 |
| Chris Wren | c****n@g****m | 7 |
| Ben McCann | 3****n | 7 |
| Beni Arisandi | 3****0 | 6 |
| Mateus Craveiro | m****o@g****m | 6 |
| flouc001 | f****1@g****m | 6 |
| Mithgol | g****t@m****u | 5 |
| Rich Trott | r****t@g****m | 5 |
| Barry Woolgar | b****y@s****m | 4 |
| and 168 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 5 months ago
All Time
- Total issues: 348
- Total pull requests: 913
- Average time to close issues: 6 months
- Average time to close pull requests: 8 days
- Total issue authors: 306
- Total pull request authors: 63
- Average comments per issue: 3.99
- Average comments per pull request: 1.41
- Merged pull requests: 758
- Bot issues: 3
- Bot pull requests: 661
Past Year
- Issues: 102
- Pull requests: 298
- Average time to close issues: 8 days
- Average time to close pull requests: 2 days
- Issue authors: 91
- Pull request authors: 21
- Average comments per issue: 2.11
- Average comments per pull request: 1.2
- Merged pull requests: 239
- Bot issues: 0
- Bot pull requests: 212
Top Authors
Issue Authors
- notebook-t (8)
- Bistard (7)
- swanfly (5)
- calculuschild (4)
- dependabot[bot] (3)
- mjbvz (2)
- baseplate-admin (2)
- UziTech (2)
- LeoDog896 (2)
- fanybook (2)
- gardnerjr (2)
- the-dev-adonis (2)
- styfle (2)
- jiaopengzi (2)
- rschristian (2)
Pull Request Authors
- dependabot[bot] (661)
- UziTech (143)
- bent10 (7)
- SpencerWhitehead7 (5)
- NOMADE55 (4)
- calculuschild (4)
- BlueCat0 (4)
- styfle (3)
- MrMarble (3)
- benmccann (2)
- halafi (2)
- laidrivm (2)
- chirsz-ever (2)
- mdnwvn (2)
- musicq (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 21
-
Total downloads:
- npm 62,292,348 last-month
- Total docker downloads: 3,078,341,284
-
Total dependent packages: 12,227
(may contain duplicates) -
Total dependent repositories: 468,904
(may contain duplicates) - Total versions: 562
- Total maintainers: 18
- Total advisories: 17
npmjs.org: marked
A markdown parser built for speed
- Homepage: https://marked.js.org
- License: MIT
-
Latest release: 16.2.1
published 6 months ago
Rankings
Maintainers (4)
Advisories (17)
- Inefficient Regular Expression Complexity in marked
- Cross-Site Scripting in marked
- Regular Expression Denial of Service in marked
- Sanitization bypass using HTML Entities in marked
- Regular Expression Denial of Service (REDoS) in Marked
- Moderate severity vulnerability that affects marked
- Multiple Content Injection Vulnerabilities in marked
- Marked vulnerable to XSS from data URIs
- Inefficient Regular Expression Complexity in marked
- Marked allows Regular Expression Denial of Service (ReDoS) attacks
- ...and 7 more
repo1.maven.org: org.webjars.npm:marked
WebJar for marked
- Homepage: https://www.webjars.org
- Documentation: https://appdoc.app/artifact/org.webjars.npm/marked/
- License: MIT
-
Latest release: 16.2.1
published 6 months ago
Rankings
repo1.maven.org: org.webjars.bower:marked
WebJar for marked
- Homepage: http://webjars.org
- Documentation: https://appdoc.app/artifact/org.webjars.bower/marked/
- License: MIT
-
Latest release: 0.3.19
published over 7 years ago
Rankings
proxy.golang.org: github.com/markedjs/marked
- Documentation: https://pkg.go.dev/github.com/markedjs/marked#section-documentation
- License: other
-
Latest release: v16.2.1+incompatible
published 6 months ago
Rankings
npmjs.org: @ponomarevlad/marked
A markdown parser built for speed
- Homepage: https://marked.js.org
- License: MIT
-
Latest release: 4.3.0-build.1
published almost 3 years ago
Rankings
Maintainers (1)
npmjs.org: inyaa-marked
A markdown parser built for speed
- Homepage: https://marked.js.org
- License: MIT
-
Latest release: 1.0.15
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @acarl005/marked
A markdown parser built for speed
- Homepage: https://marked.js.org
- License: MIT
-
Latest release: 5.0.1
published almost 4 years ago
Rankings
Maintainers (1)
repo1.maven.org: org.webjars.bowergithub.markedjs:marked
WebJar for marked
- Homepage: https://www.webjars.org
- Documentation: https://appdoc.app/artifact/org.webjars.bowergithub.markedjs/marked/
- License: MIT
-
Latest release: 6.0.0
published about 2 years ago
Rankings
npmjs.org: @bebraw/marked
A markdown parser built for speed
- Homepage: https://marked.js.org
- License: MIT
-
Latest release: 4.0.19
published over 3 years ago
Rankings
Maintainers (1)
npmjs.org: @pardjs/marked
A markdown parser built for speed
- Homepage: https://marked.js.org
- License: MIT
-
Latest release: 0.6.2
published over 6 years ago
Rankings
npmjs.org: marked-change-little
A markdown parser built for speed
- Homepage: https://marked.js.org
- License: MIT
-
Latest release: 1.0.1
published over 3 years ago
Rankings
Maintainers (1)
npmjs.org: @louwers/marked
A markdown parser built for speed
- Homepage: https://marked.js.org
- License: MIT
- Status: removed
-
Latest release: 4.0.17
published over 3 years ago
Rankings
Maintainers (1)
npmjs.org: @m3lx/marked
A markdown parser built for speed
- Homepage: https://marked.js.org
- License: MIT
-
Latest release: 0.6.3-al.1
published almost 7 years ago
Rankings
Maintainers (1)
npmjs.org: marked-uex
A markdown parser built for speed
- Homepage: https://marked.js.org
- License: MIT
-
Latest release: 1.2.3
published about 5 years ago
Rankings
Maintainers (1)
npmjs.org: esmarked
A markdown parser built for speed
- Homepage: https://marked.js.org
- License: MIT
-
Latest release: 2.1.1
published over 4 years ago
Rankings
Maintainers (1)
repo1.maven.org: org.webjars.npm:github-com-markedjs-marked
WebJar for marked
- Homepage: https://www.webjars.org
- Documentation: https://appdoc.app/artifact/org.webjars.npm/github-com-markedjs-marked/
- License: MIT
-
Latest release: 9.1.6
published 12 months ago
Rankings
npmjs.org: @rdkmaster/marked
A markdown parser built for speed
- Homepage: https://marked.js.org
- License: MIT
-
Latest release: 0.7.0-1
published almost 2 years ago
Rankings
Maintainers (1)
npmjs.org: marked-mm-js
A markdown parser built for speed
- Homepage: https://marked.js.org
- License: MIT
-
Latest release: 1.0.3
published 10 months ago
Rankings
Maintainers (1)
npmjs.org: marked-uu-js
A markdown parser built for speed
- Homepage: https://marked.js.org
- License: MIT
-
Latest release: 1.0.0
published 10 months ago
Rankings
Maintainers (1)
npmjs.org: @03balogun/marked
A markdown parser built for speed
- Homepage: https://marked.js.org
- License: MIT
-
Latest release: 5.0.6
published over 1 year ago
Rankings
Maintainers (1)
repo1.maven.org: org.mvnpm:marked
A markdown parser built for speed
- Homepage: https://marked.js.org
- Documentation: https://appdoc.app/artifact/org.mvnpm/marked/
- License: MIT
-
Latest release: 16.2.1
published 6 months ago