mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
showdown-86 explicitly put Showdown in window object if detected
This commit is contained in:
parent
2e102c72b2
commit
cca35a0c02
|
@ -1440,6 +1440,10 @@ var escapeCharacters_callback = function(wholeMatch,m1) {
|
|||
|
||||
} // end of Showdown.converter
|
||||
|
||||
// client-side export
|
||||
if (typeof window !== 'undefined') {
|
||||
window.Showdown = Showdown;
|
||||
}
|
||||
|
||||
// export
|
||||
if (typeof module !== 'undefined') module.exports = Showdown;
|
||||
|
|
Loading…
Reference in New Issue
Block a user