diff --git a/dist/showdown.js b/dist/showdown.js index 5c9a372..bc3fdfd 100644 Binary files a/dist/showdown.js and b/dist/showdown.js differ diff --git a/dist/showdown.js.map b/dist/showdown.js.map index 3477b77..80b1bbd 100644 Binary files a/dist/showdown.js.map and b/dist/showdown.js.map differ diff --git a/dist/showdown.min.js b/dist/showdown.min.js index a814802..96fab4c 100644 Binary files a/dist/showdown.min.js and b/dist/showdown.min.js differ diff --git a/dist/showdown.min.js.map b/dist/showdown.min.js.map index d1cefc6..2755ae6 100644 Binary files a/dist/showdown.min.js.map and b/dist/showdown.min.js.map differ diff --git a/src/showdown.js b/src/showdown.js index 6f20f9c..56a9f48 100644 --- a/src/showdown.js +++ b/src/showdown.js @@ -151,6 +151,14 @@ showdown.Converter = function (converterOptions) { } } + // This is a dirty workaround to maintain backwards extension compatibility + // We define a self var (which is a copy of this) and inject the makeHtml function + // directly to it. This ensures a full converter object is available when iterating over extensions + // We should rewrite the extension loading mechanism and use some kind of interface or decorator pattern + // and inject the object reference there instead. + var self = this; + self.makeHtml = makeHtml; + // Parse options if (options.extensions) {