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