diff --git a/lib/lexer_block/blockquote.js b/lib/lexer_block/blockquote.js index 73aa9c8..f24e1c5 100644 --- a/lib/lexer_block/blockquote.js +++ b/lib/lexer_block/blockquote.js @@ -7,7 +7,7 @@ var skipSpaces = require('../helpers').skipSpaces; module.exports = function blockquote(state, startLine, endLine, silent) { - var nextLine, lastLineEmpty, oldTShift, oldBMarks, i, + var nextLine, lastLineEmpty, oldTShift, oldBMarks, i, oldIndent, rules_named = state.lexerBlock.rules_named, pos = state.bMarks[startLine] + state.tShift[startLine], max = state.eMarks[startLine]; @@ -26,6 +26,8 @@ module.exports = function blockquote(state, startLine, endLine, silent) { state.bqMarks[startLine]++; state.bqLevel++; + oldIndent = state.blkIndent; + state.blkIndent = 0; oldBMarks = [ state.bMarks[startLine] ]; state.bMarks[startLine] = pos; @@ -112,6 +114,7 @@ module.exports = function blockquote(state, startLine, endLine, silent) { state.tShift[i + startLine] = oldTShift[i]; } state.bqLevel--; + state.blkIndent = oldIndent; return true; };