Using isUndefined on console object in IE8 will throw an error. This reverts to using `typeof console === 'undefined'. Closes #280
@@ -716,7 +716,8 @@ showdown.helper.replaceRecursiveRegExp = function (str, replacement, left, right
/**
* POLYFILLS
*/
-if (showdown.helper.isUndefined(console)) {
+// use this instead of builtin is undefined for IE8 compatibility
+if (typeof(console) === 'undefined') {
console = {
warn: function (msg) {
'use strict';
@@ -254,7 +254,8 @@ showdown.helper.replaceRecursiveRegExp = function (str, replacement, left, right