No description
Find a file
Daniel Baumann 83ce2279a5
Releasing fastforward version 0.14.0-1~ffwd13+u1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2026-05-22 20:21:46 +02:00
debian Releasing fastforward version 0.14.0-1~ffwd13+u1. 2026-05-22 20:21:46 +02:00
src Adding upstream version 0.14.0. 2026-05-22 20:21:20 +02:00
.cargo_vcs_info.json Adding upstream version 0.14.0. 2026-05-22 20:21:20 +02:00
.gitignore Adding upstream version 0.14.0. 2026-05-22 20:21:20 +02:00
Cargo.lock Adding upstream version 0.14.0. 2026-05-22 20:21:20 +02:00
Cargo.toml Adding upstream version 0.14.0. 2026-05-22 20:21:20 +02:00
Cargo.toml.orig Adding upstream version 0.14.0. 2026-05-22 20:21:20 +02:00
fmt.sh Adding upstream version 0.14.0. 2026-05-22 20:21:20 +02:00
LICENSE Adding upstream version 0.14.0. 2026-05-22 20:21:20 +02:00
README.md Adding upstream version 0.14.0. 2026-05-22 20:21:20 +02:00
rustfmt.toml Adding upstream version 0.14.0. 2026-05-22 20:21:20 +02:00

MIT Latest Version docs Chat on Miaou

A simple, non universal purpose, markdown parser.

If you're looking for a Markdown parser, this one is probably not the one you want:

Minimad can be used on its own but is first designed for the termimad lib, which displays static and dynamic markdown snippets on a terminal without mixing the skin with the code. Minimad sports a line-oriented flat structure (i.e. not a tree) which might not suit your needs.

If you still think you might use Minimad directly (not through Temimad), you may contact me on Miaou for advice.

Usage

[dependencies]
minimad = "0.7"
assert_eq!(
    Line::from("## a header with some **bold**!"),
    Line::new_header(
        2,
        vec![
            Compound::raw_str("a header with some "),
            Compound::raw_str("bold").bold(),
            Compound::raw_str("!"),
        ]
    )
);

assert_eq!(
    Line::from("Hello ~~wolrd~~ **World**. *Code*: `sqrt(π/2)`"),
    Line::new_paragraph(vec![
        Compound::raw_str("Hello "),
        Compound::raw_str("wolrd").strikeout(),
        Compound::raw_str(" "),
        Compound::raw_str("World").bold(),
        Compound::raw_str(". "),
        Compound::raw_str("Code").italic(),
        Compound::raw_str(": "),
        Compound::raw_str("sqrt(π/2)").code(),
    ])
);