Remove HTML clean up from code highlighting as it's done by callee
authorAlan Knowles <alan@akbkhome.com>
Fri, 19 Aug 2011 09:00:38 +0000 (09:00 +0000)
committerAlan Knowles <alan@akbkhome.com>
Thu, 8 Sep 2011 03:35:29 +0000 (11:35 +0800)
ux/Showdown.js

index 70a3729..e519c19 100644 (file)
@@ -951,14 +951,19 @@ Roo.ux.Showdown.converter = function() {
     // Encode/escape certain characters inside Markdown code runs.
     // The point is that in code, these characters are literals,
     // and lose their special Markdown meanings.
+    
+    // REMOVED - Data going into markdown should be encoded before it enters..
+    
     //
             // Encode all ampersands; HTML entities are not
             // entities within a Markdown code span.
-            text = text.replace(/&/g,"&amp;");
+            
+            
+            //text = text.replace(/&/g,"&amp;");
     
             // Do the angle bracket song and dance:
-            text = text.replace(/</g,"&lt;");
-            text = text.replace(/>/g,"&gt;");
+            //text = text.replace(/</g,"&lt;");
+            //text = text.replace(/>/g,"&gt;");
     
             // Now, escape characters that are magic in Markdown:
             text = escapeCharacters(text,"\*_{}[]\\",false);