markdown-it-bracketed-spans
v1.0.1
Published
<span> tag for markdown-it markdown parser.
Downloads
8,115
Maintainers
Readme
markdown-it-bracketed-spans
Span tag plugin for markdown-it markdown parser.
Markup is based on pandoc bracketed_spans
extension,
for example:
paragraph with [a span]{.myClass}
Must be used together with the markdown-it-attrs plugin (that's a peer dependency).
Usage
var md = require('markdown-it')()
.use( require('markdown-it-bracketed-spans') )
.use( require('markdown-it-attrs') )
var output = md.render('foo [bar *bar*]{#id .class attr=value} baz')
Output will be:
<p>
foo
<span id="id" class="class" attr="value">
bar <em>bar</em>
</span>
baz
</p>