markdown-it-br

2019-10-10 admin

markdown-it-br是什么

什么是markdown-it-br,tag for markdown-it markdown parser.

markdown-it-br使用教程帮助文档

markdown-it-br

Build Status NPM version Coverage Status

BR plugin for markdown-it markdown parser.

v1.+ requires markdown-it v4.+, 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

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-77049.html

文章标题:markdown-it-br

回到顶部