Module builders

Module builders 

Source
Expand description

Contains builders for all Markdown content types.

The API provided inside this module can be used to declare Markdown files in an imperative style:

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();

Modulesยง

image
link
list