{"repo":"wooorm/markdown-rs","free":true,"listed":false,"github":"https://github.com/wooorm/markdown-rs","clone":"git clone https://github.com/wooorm/markdown-rs.git","description":"CommonMark compliant markdown parser in Rust with ASTs and extensions","language":"Rust","stars":1561,"topics":["commonmark","compiler","gfm","markdown","parse","render","rust","tokenize"],"license":"MIT","category":"productivity","readme_excerpt":"markdown-rs [![Build][badge-build-image]][badge-build-url] [![Coverage][badge-coverage-image]][badge-coverage-url] CommonMark compliant markdown parser in Rust with ASTs and extensions. Feature highlights [x] [compliant][commonmark] (100% to CommonMark) [x] [extensions][] (100% GFM, 100% MDX, frontmatter, math) [x] [safe][security] (100% safe Rust, also 100% safe HTML by default) [x] [robust][test] (2300+ tests, 100% coverage, fuzz testing) [x] [ast][mdast] (mdast) Links [GitHub: wooorm/markdown-rs ][repo] [ crates.io : markdown ][crate] [ docs.rs : markdown ][docs] When should I use this? if you just want to turn markdown into HTML (with maybe a few extensions) if you want to do really complex things with markdown What is this? markdown-rs is an open source markdown parser written in Rust. It’s implemented as a state machine ( #![no std] + alloc ) that emits concrete tokens, so that every byte is accounted for, with positional info. The API then exposes this information as an AST, which is easier to work with, or it compiles directly to HTML. While most markdown parsers work towards compliancy with CommonMark (or GFM), this project goes further by following how the reference parsers ( cmark , cmark-gfm ) work, which is confirmed with thousands of extra tests. Other than CommonMark and GFM, this project also supports common extensions to markdown such as MDX, math, and frontmatter. This Rust crate has a sibling project in JavaScript: [ micromark ][micromark] (and [ mdast-util","default_branch":null,"files":null,"tree":[],"storefront":"/r/wooorm","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wooorm/markdown-rs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}