colored_markup 0.1.1

A library for parsing and rendering colored markup with CSS style rules.
Documentation
1
2
3
4
5
6
7
use colored_markup::{println_markup, StyleSheet};

fn main() {
    let style_sheet =
        StyleSheet::parse("red { foreground: bright-red; styles: underline }").unwrap();
    println_markup!(&style_sheet, "The next word is <red>{}</red>", "red");
}