showdown/src/loader.js

18 lines
334 B
JavaScript

var root = this;
// CommonJS/nodeJS Loader
if (typeof module !== 'undefined' && module.exports) {
module.exports = showdown;
// AMD Loader
} else if (typeof define === 'function' && define.amd) {
define(function () {
'use strict';
return showdown;
});
// Regular Browser loader
} else {
root.showdown = showdown;
}