diff --git a/src/showdown.js b/src/showdown.js index b488bad..6383b38 100644 --- a/src/showdown.js +++ b/src/showdown.js @@ -1442,7 +1442,7 @@ var escapeCharacters_callback = function(wholeMatch,m1) { // export -if (typeof module !== 'undefined') module.exports = Showdown; +if (typeof module !== 'undefined' && module.exports) module.exports = Showdown; // stolen from AMD branch of underscore // AMD define happens at the end for compatibility with AMD loaders