Crates.io | colored_markup |
lib.rs | colored_markup |
version | 0.1.1 |
source | src |
created_at | 2023-08-12 23:01:14.857176 |
updated_at | 2023-08-13 01:28:23.990728 |
description | A library for parsing and rendering colored markup with CSS style rules. |
homepage | https://github.com/schwa/colored_markup |
repository | https://github.com/schwa/colored_markup. |
max_upload_size | |
id | 943030 |
size | 35,756 |
A rust library for parsing and rendering coloured markup with CSS style rules.
use colored_markup::{println_markup, StyleSheet};
let style_sheet =
StyleSheet::parse("red { foreground: bright-red; styles: underline }").unwrap();
println_markup!(&style_sheet, "The next word is <red>{}</red>", "red");
See examples
for more.
MIT. See LICENSE.txt
for details.