Plugin for Remarkable - add classes to your markdown
npm install remarkable-classyremarkable-classy
===
This is a plugin for the remarkable markdown parser.
Need to style some text written with markdown but are lacking that extra oomph? Plug in remarkable-classy to make your markup remarkable and classy.
Install
---
```
$ npm install --save remarkable-classy
Plug
---
`
var classy = require("remarkable-classy"),
Remarkable = require("remarkable"),
md = new Remarkable();
md.use(classy);
`
Use
---
Anything in curly brackets ({}) gets interpreted as a class string for that element.
`
This is paragraph 1.
This is paragraph 2 and I wish there was a way to make it blue.
{blue}
`
converts to:
` This is paragraph 1.html
This is paragraph 2 and I wish there was a way to make it blue.
Go crazy (or not)
---
`
All kinds of headings work! {classy}
Atx... {classy} ##
... and Setext {classy}
---
_em {classy}_ and __strong {classy}__ are supported as well.
{classy}
- so
- are
- ul tags
{classy}
> blockquotes?
> {classy}
>
> why not!
{classy}
`converts to:
`html
All kinds of headings work!
Atx...
... and Setext
em and strong are supported as well.
- so
- are
- ul tags
blockquotes?
why not!
``Very classy indeed!