Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wuxianucw/mdbook-classy

Paragraph css class annotation for mdbook
https://github.com/wuxianucw/mdbook-classy

Last synced: 10 days ago
JSON representation

Paragraph css class annotation for mdbook

Awesome Lists containing this project

README

        

# mdbook-classy

## What is this?

This is a focused markdown preprocessor for [mdbook](https://crates.io/crates/mdbook) that makes it simple css to add classes to your markdown paragraphs.

It uses kramdown-style class annotation, changing this

```markdown
{:.class-name}
This is a *grand* textual paragraph. Truly **grand**!
```

to this:

```markdown

This is a *grand* textual paragraph. Truly **grand**!


```

## 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:

```bash
cargo install mdbook-classy
```

Then add the following to `book.toml`:

```bash
[preprocessor.classy]
```