Crates.io | mdbook-classy |
lib.rs | mdbook-classy |
version | 0.1.0 |
source | src |
created_at | 2020-06-29 17:36:28.370857 |
updated_at | 2020-06-29 17:36:28.370857 |
description | An mdbook preprocessor for adding html-css classes to markdown. |
homepage | https://github.com/reviewable/mdbook-classy |
repository | https://github.com/reviewable/mdbook-classy |
max_upload_size | |
id | 259485 |
size | 53,622 |
This is a focused markdown preprocessor for mdbook that makes it simple css classes to your markdown paragraphs.
It uses kramdown-style class annotation, changing this
{:.class-name}
This is a *grand* textual paragraph. Truly **grand**!
to this:
<div class="class-name">
This is a *grand* textual paragraph. Truly **grand**!
</div>
mdbook-classy lets you easily define new stylistic element types for your book.
Give them a class name and define the style for the element in css and you're on your way!
To install mdbook-classy, use cargo:
cargo install mdbook-classy
Then add the following to book.toml
:
[preprocessor.classy]