From 35b0f3c398f32ec06245d962e0584c27cd8bab54 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 18 Oct 2016 16:44:42 +0800 Subject: [PATCH] ux/Showdown.js --- ux/Showdown.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ux/Showdown.js b/ux/Showdown.js index 57c9cf4835..80b957c1a9 100644 --- a/ux/Showdown.js +++ b/ux/Showdown.js @@ -345,6 +345,9 @@ Roo.ux.Showdown.converter = function() { // These are all the transformations that form block-level // tags like paragraphs, headers, and list items. // + // code blocks first... so content does not get translated.. + text = _DoCodeBlocks(text); + text = _DoHeaders(text); // Do Horizontal Rules: @@ -354,7 +357,7 @@ Roo.ux.Showdown.converter = function() { text = text.replace(/^[ ]{0,2}([ ]?\_[ ]?){3,}[ \t]*$/gm,key); text = _DoLists(text); - text = _DoCodeBlocks(text); + text = _DoBlockQuotes(text); // We already ran _HashHTMLBlocks() before, in Markdown(), but that -- 2.39.2