mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
18 lines
334 B
JavaScript
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;
|
|
}
|