Skip to content

jay-hodgson/markdown-it-center-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published