mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
More hardy node environment check
This commit is contained in:
parent
053288f2fe
commit
cc21769a06
|
@ -1442,7 +1442,7 @@ var escapeCharacters_callback = function(wholeMatch,m1) {
|
||||||
|
|
||||||
|
|
||||||
// export
|
// export
|
||||||
if (typeof module !== 'undefined') module.exports = Showdown;
|
if (typeof module !== 'undefined' && module.exports) module.exports = Showdown;
|
||||||
|
|
||||||
// stolen from AMD branch of underscore
|
// stolen from AMD branch of underscore
|
||||||
// AMD define happens at the end for compatibility with AMD loaders
|
// AMD define happens at the end for compatibility with AMD loaders
|
||||||
|
|
Loading…
Reference in New Issue
Block a user