r3bl-open-core
r3bl-open-core copied to clipboard
Add MD syntax highlighting to editor component
Existing MD SH crates
- pulldown-cmark: https://github.com/nazmulidris/syntect
- syntect: https://github.com/nazmulidris/syntect
Example of rust md CLI formatter (using both crates above)
MD -> AST:
- markdown-rs: https://github.com/wooorm/markdown-rs
Parsing resources
- https://iximiuz.com/en/posts/rust-writing-parsers-with-nom/
- https://blog.logrocket.com/parsing-in-rust-with-nom/
- https://naiveai.hashnode.dev/practical-parsing-nom