markdown-it-br

tag for markdown-it markdown parser.

markdown-it-br

BR plugin for markdown-itmarkdown parser.

v1.+ requires markdown-itv4.+, see changelog.

protect <br> <script>=> protect <br>

Install

node.js, browser:

npm install markdown-it-br --save
bower install markdown-it-br --save

Use

var md = require('markdown-it')()
            .use(require('markdown-it-br'));

md.render('protect <br>') // => 'protect <br>'

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.markdownitBr.

License

MIT

HomePage

https://github.com/jay-hodgson/markdown-it-br

Repository

https://github.com/jay-hodgson/markdown-it-br


上一篇:get-line-from-pos
下一篇:lqip

相关推荐

官方社区

扫码加入 JavaScript 社区