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: 9 days ago
JSON representation
A markdown parser to output Astro markup
- Host: GitHub
- URL: https://github.com/rodneylab/cmessless
- Owner: rodneylab
- License: bsd-3-clause
- Created: 2022-02-23T19:43:58.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-15T09:00:34.000Z (20 days ago)
- Last Synced: 2025-04-15T09:39:19.926Z (20 days ago)
- Topics: astro, astrojs, markdown, mdx, nom, rust
- Language: Rust
- Homepage:
- Size: 831 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
cmesslessBasic 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/)