Expand description
use stylin::Stylin;
let s = Stylin::from(r#"{
heading_1: "Heading Level 1 Style",
paragraph: "Paragraph Style",
}"#).expect("config");
let input = String::from(
"# This is a heading\n\nThis is a paragraph.\n\n",
);
let output = s.convert(&input).expect("convert");
assert_eq!(
output.join(""),
r#":::{custom-style="Heading Level 1 Style"}
This is a heading
:::
:::{custom-style="Paragraph Style"}
This is a paragraph.
:::
"#,
);
Structs
- Primary interface