GithubHelp home page GithubHelp logo

tangdongle / mdbook-classy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wuxianucw/mdbook-classy

0.0 0.0 0.0 26 KB

Element css class annotation for mdbook

License: MIT License

Rust 98.75% Makefile 1.25%

mdbook-classy's Introduction

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]

mdbook-classy's People

Contributors

dhbradshaw avatar pkaminski avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.