Marked
marked.js.org
2
Leaving SiteNav
External Link Disclaimer
You are about to visit marked.js.org. This website is not operated by us. We are not responsible for its content or privacy practices.
About this website
Marked is a low-level Markdown compiler and parser for JavaScript, built for speed with minimal dependencies, designed to convert Markdown text into HTML on both the client side and server side. The library actively supports the most widely used Markdown specifications with high conformance rates including 100 percent compatibility with Markdown 1.0, 98 percent with CommonMark 0.31, and 97 percent with GitHub Flavored Markdown 0.29, making it the parser of choice for projects requiring reliable, specification-compliant Markdown rendering. Available as both a command line interface and a programmable API, Marked can be installed globally via npm for file-based conversion or imported as a module in Node.js and browser environments including ESM imports from CDN. The extensibility system provides marked.use for registering extensions, custom Renderer overrides for controlling HTML output of each Markdown element type, custom Tokenizer hooks for defining new syntax, Walk Tokens for traversing and modifying the token stream, and Hooks for pre-process and post-process lifecycle events. Async support enables rendering with asynchronous tokenizers and renderers for scenarios requiring network calls during parsing. The Lexer and Parser classes are exposed individually for advanced use cases requiring manual pipeline control. The library integrates with DOMPurify, js-xss, and sanitize-html for XSS protection on untrusted input. Tools built on Marked include zero-md for web component Markdown rendering, TeXMe for Markdown plus LaTeX, StrapDown.js for on-the-fly conversion, and Homebrewery for authentic tabletop RPG content. MIT licensed. Copyright 2018-2026, Marked contributors including Christopher Jeffrey.
Statistics
2
Views
0
Clicks
0
Like
0
Dislike