Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rodneylab/cmessless
- Owner: rodneylab
- License: bsd-3-clause
- Created: 2022-02-23T19:43:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-06T13:24:38.000Z (2 months ago)
- Last Synced: 2024-09-06T14:41:42.287Z (2 months ago)
- Topics: astro, astrojs, markdown, mdx, nom, rust
- Language: Rust
- Homepage:
- Size: 707 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
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/)