|
@ -25,7 +25,7 @@ module.exports = function blockquote(state, startLine, endLine, silent) { |
|
|
terminate, |
|
|
terminate, |
|
|
terminatorRules, |
|
|
terminatorRules, |
|
|
token, |
|
|
token, |
|
|
wasOutdented, |
|
|
isOutdented, |
|
|
oldLineMax = state.lineMax, |
|
|
oldLineMax = state.lineMax, |
|
|
pos = state.bMarks[startLine] + state.tShift[startLine], |
|
|
pos = state.bMarks[startLine] + state.tShift[startLine], |
|
|
max = state.eMarks[startLine]; |
|
|
max = state.eMarks[startLine]; |
|
@ -106,7 +106,6 @@ module.exports = function blockquote(state, startLine, endLine, silent) { |
|
|
|
|
|
|
|
|
oldParentType = state.parentType; |
|
|
oldParentType = state.parentType; |
|
|
state.parentType = 'blockquote'; |
|
|
state.parentType = 'blockquote'; |
|
|
wasOutdented = false; |
|
|
|
|
|
|
|
|
|
|
|
// Search the end of the block
|
|
|
// Search the end of the block
|
|
|
//
|
|
|
//
|
|
@ -135,7 +134,7 @@ module.exports = function blockquote(state, startLine, endLine, silent) { |
|
|
// > current blockquote
|
|
|
// > current blockquote
|
|
|
// 2. checking this line
|
|
|
// 2. checking this line
|
|
|
// ```
|
|
|
// ```
|
|
|
if (state.sCount[nextLine] < state.blkIndent) wasOutdented = true; |
|
|
isOutdented = state.sCount[nextLine] < state.blkIndent; |
|
|
|
|
|
|
|
|
pos = state.bMarks[nextLine] + state.tShift[nextLine]; |
|
|
pos = state.bMarks[nextLine] + state.tShift[nextLine]; |
|
|
max = state.eMarks[nextLine]; |
|
|
max = state.eMarks[nextLine]; |
|
@ -145,7 +144,7 @@ module.exports = function blockquote(state, startLine, endLine, silent) { |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (state.src.charCodeAt(pos++) === 0x3E/* > */ && !wasOutdented) { |
|
|
if (state.src.charCodeAt(pos++) === 0x3E/* > */ && !isOutdented) { |
|
|
// This line is inside the blockquote.
|
|
|
// This line is inside the blockquote.
|
|
|
|
|
|
|
|
|
// skip spaces after ">" and re-calculate offset
|
|
|
// skip spaces after ">" and re-calculate offset
|
|
|