| Crates.io | md-to-tui |
| lib.rs | md-to-tui |
| version | 0.1.2 |
| created_at | 2023-06-29 09:38:15.613038+00 |
| updated_at | 2023-06-29 12:57:55.911265+00 |
| description | simple parser from markdown to ratatui types |
| homepage | |
| repository | |
| max_upload_size | |
| id | 903099 |
| size | 30,917 |
markdown to ratatui parser
md-to-tui is an markdown parser from md like text to ratatui types
#! its in the early stage and not evrything works for exp. bold/itlic are not working right now becouse of crude and simple implemetion at the time.
this library implements MarkdownParsable for types that implement ToString trait.
You can use parse_markdown fn to parse markdown to Text.
parse_markdown takes option of MdStyle and returns Result<Text<'static>, Error>
// example
let md = "
# TODO
- [ ] one
- [ ] two
[link](http://exp.com)
"
let res = md.parse_markdown(Some(style))