An open API service indexing awesome lists of open source software.

https://github.com/mb21/markdown-it-bracketed-spans

Span (<span>) tag plugin for markdown-it markdown parser
https://github.com/mb21/markdown-it-bracketed-spans

markdown-it-plugin

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# markdown-it-bracketed-spans

Span tag plugin for [markdown-it markdown parser](https://github.com/markdown-it/markdown-it).

Markup is based on [pandoc `bracketed_spans` extension](http://pandoc.org/MANUAL.html#extension-bracketed_spans),
for example:

paragraph with [a span]{.myClass}

Must be used together with the [markdown-it-attrs plugin](https://github.com/arve0/markdown-it-attrs)
(that's a peer dependency).

## Usage

```javascript
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:

```html


foo

bar bar

baz


```