diff options
Diffstat (limited to 'bin/wiki/ImportarDesdeURL/node_modules/smartquotes/lib/index.js')
-rw-r--r-- | bin/wiki/ImportarDesdeURL/node_modules/smartquotes/lib/index.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bin/wiki/ImportarDesdeURL/node_modules/smartquotes/lib/index.js b/bin/wiki/ImportarDesdeURL/node_modules/smartquotes/lib/index.js new file mode 100644 index 00000000..a48da08d --- /dev/null +++ b/bin/wiki/ImportarDesdeURL/node_modules/smartquotes/lib/index.js @@ -0,0 +1,24 @@ +const replacements = require('./replacements'), + element = require('./element'), + listen = require('./listen'), + string = require('./string'); + + +// The smartquotes function should just delegate to the other functions +function smartquotes(context) { + if (typeof document !== 'undefined' && typeof context === 'undefined') { + listen.runOnReady(() => element(document.body)); + return smartquotes; + } else if (typeof context === 'string') { + return string(context); + } else { + return element(context); + } +} + + +module.exports = smartquotes; +module.exports.string = string; +module.exports.element = element; +module.exports.replacements = replacements; +module.exports.listen = listen; |