umd 0.1.0

Universal Markdown - A post-Markdown superset with Bootstrap 5 integration and extensible syntax
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use umd::parse_with_frontmatter;

fn main() {
    let tests = vec![
        (
            "Text before\n\n----\n\nText after\n\n***\n\nMore text",
            "HR",
        ),
        ("COLOR(blue): Blue paragraph", "COLOR"),
    ];

    for (input, desc) in tests {
        println!("\n=== {} ===", desc);
        println!("Input:\n{}", input);
        let result = parse_with_frontmatter(input);
        println!("Output:\n{}", result.html);
    }
}