mdbook-classy

Crates.iomdbook-classy
lib.rsmdbook-classy
version0.1.0
sourcesrc
created_at2020-06-29 17:36:28.370857
updated_at2020-06-29 17:36:28.370857
descriptionAn mdbook preprocessor for adding html-css classes to markdown.
homepagehttps://github.com/reviewable/mdbook-classy
repositoryhttps://github.com/reviewable/mdbook-classy
max_upload_size
id259485
size53,622
Douglas H. Bradshaw (dhbradshaw)

documentation

README

mdbook-classy

What is this?

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>

Motifivation

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!

Installation

To install mdbook-classy, use cargo:

cargo install mdbook-classy

Then add the following to book.toml:

[preprocessor.classy]
Commit count: 17

cargo fmt