Skip to content

About

No description, website, or topics provided.

Resources

Security policy

Stars

6 stars

Watchers

1 watching

Forks

Repository files navigation

oxc-markdown-parser

oxc-markdown-parser parses CommonMark + GFM (and eventually MDX v3) into a span-faithful, style-preserving typed AST, designed for building formatters. Prettier's extensions (math, liquid, wiki links) and ::: container directives are enabled by default.

How it parses, and why, is in AGENTS.md. Deliberate differences from micromark are listed in DIVERGENCES.md.

Example

use oxc_markdown_parser::{Allocator, Parser};

let allocator = Allocator::default();
let parser = Parser::new(&allocator, "# Hello\n");
let ret = parser.parse();
println!("{:#?}", ret.root);
assert!(ret.diagnostics.is_empty());

More examples are available in examples.

License

MIT

Our sponsors

About

No description, website, or topics provided.

Resources

Security policy

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages