Merge pull request #99 from leizongmin/master

修正 issue #98
This commit is contained in:
fengmk2 2012-11-01 23:06:14 -07:00
commit b69b5bd95e

View File

@ -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("<hr />");
@ -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