Browse Source

Updated exports syntax to work like README demonstrates

Titus 13 năm trước cách đây
mục cha
commit
c5ead005b1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/showdown.js

+ 1 - 1
src/showdown.js

@@ -1335,4 +1335,4 @@ var escapeCharacters_callback = function(wholeMatch,m1) {
 } // end of Showdown.converter
 
 // export
-if (typeof exports != 'undefined') exports = Showdown;
+if (typeof exports != 'undefined') exports.Showdown = Showdown;