From 89fabd8228d0375672239ec8a25d02f8d5301632 Mon Sep 17 00:00:00 2001 From: Lei Zongmin Date: Fri, 2 Nov 2012 10:37:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86Markdown=E4=B8=AD=E7=9A=84H=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E8=A7=A3=E6=9E=90=E6=94=BE=E5=88=B0=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=9D=97=E8=A7=A3=E6=9E=90=E5=90=8E=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/libs/showdown.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/libs/showdown.js b/public/libs/showdown.js index a3a8b8e..7354d8e 100644 --- a/public/libs/showdown.js +++ b/public/libs/showdown.js @@ -449,7 +449,6 @@ var _RunBlockGamut = function(text) { // These are all the transformations that form block-level // tags like paragraphs, headers, and list items. // - text = _DoHeaders(text); // Do Horizontal Rules: var key = hashBlock("
"); @@ -461,6 +460,8 @@ var _RunBlockGamut = function(text) { text = _DoCodeBlocks(text); text = _DoBlockQuotes(text); + text = _DoHeaders(text); + // We already ran _HashHTMLBlocks() before, in Markdown(), but that // was to escape raw HTML in the original Markdown source. This time, // we're escaping the markup we've just created, so that we don't wrap