Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rodneylab/cmessless

A markdown parser to output Astro markup
https://github.com/rodneylab/cmessless

astro astrojs markdown mdx nom rust

Last synced: 7 days ago
JSON representation

A markdown parser to output Astro markup

Awesome Lists containing this project

README

        

Rodney Lab c mess less Github banner



Rodney Lab logo



cmessless

Basic MDX parser written in Rust.

- adds an id to each heading for easy linking,
- reformats headings, replacing hyphens with non-breaking hyphens,
- uses a parser combinator for improved parsing performance: outputs parsed
output in a dozen milliseconds for input mdx file of ~25 KB
- watch mode to update Astro output as you save markdown,
- escapes code in inline fragments and fenced code blocks.

⛔️ **full Markdown spec not yet implemented!**

Credit to tutorial by Jesse Lawson for initial inspiration:
[https://jesselawson.org/rust/getting-started-with-rust-by-building-a-tiny-markdown-compiler/](https://jesselawson.org/rust/getting-started-with-rust-by-building-a-tiny-markdown-compiler/)