FIX: Heading with style

This commit is contained in:
Robin Ward 2013-10-16 10:39:06 -04:00
parent 67771d6bdf
commit 8d016092cd
2 changed files with 8 additions and 1 deletions

View File

@ -210,6 +210,13 @@ test("Mentions", function() {
});
test("Heading", function() {
cooked("**Bold**\n----------",
"<h2><strong>Bold</strong></h2>",
"It will bold the heading");
});
test("Oneboxing", function() {
var matches = function(input, regexp) {

View File

@ -372,7 +372,7 @@ Markdown.dialects.Gruber = {
if ( !m ) return undefined;
var level = ( m[ 2 ] === "=" ) ? 1 : 2;
var header = [ "header", { level : level }, m[ 1 ] ];
var header = [ "header", { level : level } ].concat( this.processInline(m[ 1 ]) );
if ( m[0].length < block.length )
next.unshift( mk_block( block.substr( m[0].length ), block.trailing, block.lineNumber + 2 ) );