markdown-it-center-text
v1.0.4
Published
tag for markdown-it markdown parser.
Downloads
2,985
Readme
markdown-it-center-text
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
.