ux/Showdown.js
authorAlan Knowles <alan@roojs.com>
Tue, 18 Oct 2016 08:59:22 +0000 (16:59 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 18 Oct 2016 08:59:22 +0000 (16:59 +0800)
ux/Showdown.js

index 75c7e36..8de76db 100644 (file)
@@ -130,6 +130,8 @@ Roo.ux.Showdown.converter = function() {
             // contorted like /[ \t]*\n+/ .
             text = text.replace(/^[ \t]+$/mg,"");
     
+            text = _DoCodeBlcoks(text);
+    
             // Turn block-level HTML blocks into hash entries
             text = _HashHTMLBlocks(text);