From: Alan Knowles Date: Tue, 26 Jul 2011 08:21:55 +0000 (+0000) Subject: Showdown - minor fix to variable scoping X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=bc03e8483d6c0c82037a309d4489d16daac1f30a Showdown - minor fix to variable scoping --- diff --git a/ux/Showdown.js b/ux/Showdown.js index e569e0f347..70a372947f 100644 --- a/ux/Showdown.js +++ b/ux/Showdown.js @@ -87,14 +87,14 @@ Roo.ux.Showdown.converter = function() { var g_list_level = 0; - this.makeHtml = function(text) { + this.makeHtml = function(_text) { // // Main function. The order in which other subs are called here is // essential. Link and image substitutions need to happen before // _EscapeSpecialCharsWithinTagAttributes(), so that any *'s or _'s in the // and tags get encoded. - // - + //v + var text = '' + _text; // Clear the global hashes. If we don't clear these, you get conflicts // from other articles when generating a page which contains more than // one article (e.g. an index page that shows the N most recent