posthtml-textr

1.0.5 • Public • Published

PostHTML-Textr

npm version

PostHTML plugin wrapper over Textr modular typographic framework

Usage

var posthtml = require('posthtml'),
    html = '<article class="my-article"><h1>Hello  "world"...\n</h1><p>foo...bar</p></article>';
 
posthtml()
    .use(require('posthtml-textr')(
        { locale: 'ru'},
        [
            require('typographic-ellipses'),
            require('typographic-single-spaces'),
            require('typographic-quotes')
        ]
    ))
    .process(html)
    .then(function(result) {
        console.log(result.html);
        //<article class="my-article"><h1>Hello «world»…</h1><p>foo…bar</p></article>
    })

Package Sidebar

Install

npm i posthtml-textr

Weekly Downloads

7

Version

1.0.5

License

MIT

Last publish

Collaborators

  • voischev