FIX: Blockquote issue

This commit is contained in:
Robin Ward
2013-10-01 16:45:26 -04:00
parent 63d86eb9eb
commit 9e815dbef9
2 changed files with 7 additions and 16 deletions

View File

@@ -719,6 +719,13 @@ Markdown.dialects.Gruber = {
blockquote: function blockquote( block, next ) {
var m = /(^|\n) +(\>[\s\S]*)/.exec(block);
if (m && m[2] && m[2].length) {
var blockContents = block.replace(/(^|\n) +\>/, "$1>");
next.unshift(blockContents);
return [];
}
if ( !block.match( /^>/m ) )
return undefined;