|
|
@ -4,7 +4,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
module.exports = function blockquote(state, startLine, endLine, silent) { |
|
|
|
var nextLine, lastLineEmpty, oldTShift, oldBMarks, oldIndent, oldListMode, |
|
|
|
var nextLine, lastLineEmpty, oldTShift, oldBMarks, oldIndent, oldParentType, |
|
|
|
terminatorRules = state.parser._rulesBlockquoteTerm, i, l, terminate, |
|
|
|
pos = state.bMarks[startLine] + state.tShift[startLine], |
|
|
|
max = state.eMarks[startLine]; |
|
|
@ -103,12 +103,12 @@ module.exports = function blockquote(state, startLine, endLine, silent) { |
|
|
|
state.tShift[nextLine] = -1337; |
|
|
|
} |
|
|
|
|
|
|
|
oldListMode = state.listMode; |
|
|
|
state.listMode = false; |
|
|
|
oldParentType = state.parentType; |
|
|
|
state.parentType = 'blockquote'; |
|
|
|
state.tokens.push({ type: 'blockquote_open', level: state.level++ }); |
|
|
|
state.parser.tokenize(state, startLine, nextLine); |
|
|
|
state.tokens.push({ type: 'blockquote_close', level: --state.level }); |
|
|
|
state.listMode = oldListMode; |
|
|
|
state.parentType = oldParentType; |
|
|
|
|
|
|
|
// Restore original tShift; this might not be necessary since the parser
|
|
|
|
// has already been here, but just to make sure we can do that.
|
|
|
|