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