0.4.0 • Published 5 years ago
showdown-container v0.4.0
showdown-container
Fenced container plugin for the showdown markdown parser, idea copied from markdown-it-container
This extension allows you to create block level containers:
::: some-class
*Some text*
:::
Which will be rendered as:
<div class="some-class">
<em>Some text</em>
</div>
Usage
var Showdown = require('showdown');
var showdownContainer = require('showdown-container');
// on the server side
var converter = new showdown.Converter({ extensions: [showdownContainer] });
// on the client side (or with global.showdown set)
var converter = new showdown.Converter({ extensions: ['container'] });
Future
- define completely arbitrary containers like markdown-it-container
Installation
$ npm install --save showdown-container