ux/Showdown.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 26 Jul 2011 08:21:55 +0000 (16:21 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 26 Jul 2011 08:21:55 +0000 (16:21 +0800)
ux/Showdown.js

index 2d1f75c..70a3729 100644 (file)
@@ -94,7 +94,7 @@ Roo.ux.Showdown.converter = function() {
     // _EscapeSpecialCharsWithinTagAttributes(), so that any *'s or _'s in the <a>
     // and <img> tags get encoded.
     //v
-            var text = _text;
+            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