Skip to content

wuxianucw/mdbook-classy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mdbook-classy

What is this?

This is a focused markdown preprocessor for mdbook that makes it simple css to add 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]

About

Paragraph css class annotation for mdbook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •