| Crates.io | markdown-builder |
| lib.rs | markdown-builder |
| version | 1.0.0 |
| created_at | 2024-09-15 16:48:43.931087+00 |
| updated_at | 2024-09-15 16:48:43.931087+00 |
| description | Opinionated Rust crate for programmatically building markdown documents |
| homepage | https://github.com/Erb3/markdown-builder |
| repository | https://github.com/Erb3/markdown-builder |
| max_upload_size | |
| id | 1375568 |
| size | 38,302 |
Opinionated Rust crate for programmatically building markdown documents.
This project is based of the markdown-composer crate by mainrs.
To fully get the gripe of markdown-builder, a good starting point is the unit tests. Here however, is a simple example.
let mut doc = Markdown::new();
doc.image(
ImageBuilder::new()
.url("https://example.com/picture.png")
.text("A cute picture of a sandcat")
.footer()
.build(),
);
doc.paragraph("Hello World");
println!("output: {}", doc.render())
This project was forked out of markdown-composer due to a multitude of reasons: