encre-css-typography
A plugin that provides a set of
prose
classes you can use to add beautiful typographic defaults to any vanilla HTML you don't control, like HTML rendered from Markdown, or pulled from a CMS.
Getting started
To integrate encre-css-typography
with encre-css
, add it in your Cargo.toml
:
[]
= "0.1.5"
Then, call the register
function with a mutable reference to a Config
structure:
use Config;
let mut config = from_file?;
// Or let mut config = Config::default();
register;
let _css = generate;
// Do something with the CSS