A markdown parser built for speed
npm install 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)
Check out the demo page to see Marked in action ⛹️
Our documentation pages are also rendered using marked 💯
Also read about:
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: Baseline Widely Available
CLI:
``sh`
npm install -g marked
In-browser:
`sh`
npm install marked
`
DOMPurify.sanitize(marked.parse());`
CLI
` hello world bash`Example with stdin input
$ marked -o hello.html
hello world
^D
$ cat hello.html
`bash`Print all options
$ marked --help
Browser
`html`
or import esm module
`html``
Copyright (c) 2018+, MarkedJS. (MIT License)
Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)