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.

Features

  • Compliant (100% to CommonMark)
  • Extensions (100% GFM, 100% MDX, frontmatter, math)
  • Safe (100% safe Rust, also 100% safe HTML by default)
  • Robust (2300+ tests, 100% coverage, fuzz testing)
  • Ast (mdast)
  • With Rust

Project Samples

Project Activity

See All Activity >

Categories

Markdown Editors

License

MIT License

Follow markdown-rs

markdown-rs Web Site

You Might Also Like
New Plans, same great Auth0 | Auth0 by Okta Icon
New Plans, same great Auth0 | Auth0 by Okta

You asked, we delivered! Auth0 has expanded our Free and Paid plans to make it even easier for you to protect your customers identities.

In our new Free Plan, you'll receive more MAUs than ever. You'll also be able to add Passwordless authentication, use your own custom domain, and more. Our expanded Paid Plans include increased connections, more MFA offerings, and more. Check out what's new.
Learn more
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of markdown-rs!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Rust

Related Categories

Rust Markdown Editors

Registered

2024-09-09