Last active
August 29, 2015 14:19
-
-
Save A/cec41b405940b9fea413 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// Dependencies | |
var textr = require('textr'); | |
var typograph = require('./typograph'); | |
/** | |
* append options on runtime | |
*/ | |
typograph("C'est la 'nature'?", { locale: 'ru' }); // C'est la «nature»? | |
/** | |
* Or set another one defaults | |
*/ | |
var tf = textr({ locale: 'ru' }) | |
.use(typograph) | |
.use(/* … */) | |
tf("C'est la 'nature'?"); // C'est la «nature»? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// Dependencies | |
var textr = require('textr'); | |
// create textr with default options | |
module.exports = textr({ locale: 'en-us' }) | |
.use(require('typographic-ellipses')) | |
.use(require('typographic-quotes')) | |
.use(require('typographic-math')) | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment