1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//! Contains builders for all Markdown content types.
//!
//! The API provided inside this module can be used to declare Markdown files in
//! an imperative style:
//!
//! ```rust
//! use markdown_composer::{Link, List, Markdown};
//!
//! let rendered = Markdown::new()
//!     .header1("Header 1")
//!     .paragraph("Some text that gets displayed")
//!     .list(List::builder()
//!         .add("Item 1")
//!         .add("Item 2")
//!         .add("Item 3")
//!         .ordered())
//!     .header2("Sub Header 1")
//!     .link(Link::builder()
//!         .text("Hello world examles")
//!         .url("https://hello.world")
//!         .build())
//!     .render();
//! ```

pub mod image;
pub mod link;
pub mod list;