showdown-86 explicitly put Showdown in window object if detected

This commit is contained in:
Christopher Hiller 2014-02-16 23:54:55 -08:00
parent 2e102c72b2
commit cca35a0c02

View File

@ -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;