Skip to content

mb21/markdown-it-bracketed-spans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Span (<span>) tag plugin for markdown-it markdown parser

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published