textly

1.0.4 • Public • Published

Textly

A plugin for markdown-it that wraps content in spans with one or more space-delimited css classes.

[[my-class]] your text here [[my-class]] will render

<span class="my-class">
    your text here
</span>

[[my-class another-class]] some other text [[my-class another-class]] will render

<span class="my-class another-class">
    some other text
</span>

Usage

var md = require('markdown-it')()
            .use(require('textly'));
md.render(/*...*/)

Package Sidebar

Install

npm i textly

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

3.75 kB

Total Files

3

Last publish

Collaborators

  • ianblynch