1.0.0 • Published 4 years ago

showdown-custom-class v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

Custom Classes in Showdown

An extension for showdown that enables custom classes from your markdown.

Installation

npm install showdown-custom-class
const customClassExt = require('showdown-custom-class')

...

var converter = new showdown.Converter({
    extensions: [customClassExt],
})

Usage

#[.header]Header
[.pTag line]Just a line of text.
<h1 id="headercontenttitle" class="header">Header</h1>
<p class="pTag line">Just a line of text.</p>