🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

showdown-container

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

showdown-container

Block level containers for the showdown markdown parser

latest
Source
npmnpm
Version
0.4.0
Version published
Weekly downloads
8
-11.11%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

markdown

FAQs

Package last updated on 01 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts