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