1.0.4 • Published 5 years ago

textly v1.0.4

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

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(/*...*/)