mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
FIX: Heading with style
This commit is contained in:
parent
67771d6bdf
commit
8d016092cd
@ -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) {
|
||||
|
2
vendor/assets/javascripts/better_markdown.js
vendored
2
vendor/assets/javascripts/better_markdown.js
vendored
@ -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 ) );
|
||||
|
Loading…
Reference in New Issue
Block a user