| Crates.io | sent_parse |
| lib.rs | sent_parse |
| version | 0.2.1 |
| created_at | 2021-06-02 01:42:28.229019+00 |
| updated_at | 2021-06-02 19:23:52.878218+00 |
| description | Presentation parsing library based on suckless sent |
| homepage | https://github.com/mythmakerseven/sent_parse |
| repository | https://github.com/mythmakerseven/sent_parse |
| max_upload_size | |
| id | 405044 |
| size | 4,878 |
This crate takes a string (e.g. from a text file) and parses it into a vector of presentation slides in the style of sent. With this, you can implement display features without worrying about parsing the text.
Each slide is returned as a struct with associated metadata. Currently there is a TextSlide struct and an ImageSlide struct.
For example, your program can read presentation.txt into a string and then provide it to sent_parse. But this library isn't opinionated about the source of its input, so you can use it ways that diverge from the original suckless tool.