Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

modosc/showdown-container

Repository files navigation

showdown-container npm version

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

Installation

$ npm install --save showdown-container

About

Fenced container plugin for the showdown markdown parser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •