Markdown libraries
Parse and render Markdown inside your own application. Below are the most widely used libraries grouped by language. Most follow the CommonMark spec, so they parse the basics identically and differ mainly in speed, API style and which extensions they bundle.
JavaScript & TypeScript
markdown-it
Fast, CommonMark-compliant and highly pluggable — the engine behind many editors.
marked
Tiny and very quick, with no dependencies — ideal for running in the browser.
remark
Markdown as an abstract syntax tree you can inspect and transform; part of the unified ecosystem.
micromark
A small, CommonMark- and GFM-compliant tokenizer; the low-level core that powers remark.
Python
markdown-it-py
A faithful port of markdown-it — CommonMark-compliant and pluggable.
mistletoe
A pure-Python, CommonMark-compliant parser designed to be easy to extend with custom renderers.
Ruby
CommonMarker
Ruby bindings to GitHub's cmark-gfm — CommonMark and GitHub Flavored Markdown.
PHP
league/commonmark
A highly extensible, CommonMark- and GFM-compliant parser by The PHP League; used by Laravel.
Go
Rust
pulldown-cmark
A fast, safe pull parser; the de-facto standard across the Rust ecosystem.
Java / JVM
C / C++
.NET
Markdig
A fast, extensible, CommonMark-compliant parser for .NET with a rich set of extensions.
Swift
swift-markdown
Apple's official Swift library for parsing, building and rewriting Markdown, built on cmark-gfm.