markdown-it-center-text

1.0.4 • Public • Published

markdown-it-center-text

Build Status NPM version Coverage Status

Center text plugin for markdown-it markdown parser.

v1.+ requires markdown-it v4.+, see changelog.

->Centered Text<- => <div class="text-align-center">Centered Text</div>

Install

node.js, browser:

npm install markdown-it-center-text --save
bower install markdown-it-center-text --save

Use

var md = require('markdown-it')()
            .use(require('markdown-it-center-text'));
 
md.render('->Centered Text<-') // => '<div class="text-align-center">Centered Text</div>'
 

The widgetparams can be used to determine what kind of html widget should be rendered in the output container.

Differences in browser. If you load script directly into the page, without package system, module will add itself globally as window.markdownitCentertext.

License

MIT

Dependencies (0)

    Dev Dependencies (11)

    Package Sidebar

    Install

    npm i markdown-it-center-text

    Weekly Downloads

    623

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    13.6 kB

    Total Files

    7

    Last publish

    Collaborators

    • jay-hodgson
    • xschildwachter
    • agendel
    • nickgros
    • roccbot