summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/lib/blocks.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
index 57aba3d..abaea17 100644
--- a/js/lib/blocks.js
+++ b/js/lib/blocks.js
@@ -496,18 +496,18 @@ var incorporateLine = function(ln) {
// finalize any blocks not matched
allClosed = allClosed || this.closeUnmatchedBlocks();
- t = container.type;
if (blank && container.lastChild) {
container.lastChild._lastLineBlank = true;
}
+ t = container.type;
+
// Block quote lines are never blank as they start with >
// and we don't count blanks in fenced code for purposes of tight/loose
// lists or breaking out of lists. We also don't set _lastLineBlank
// on an empty list item, or if we just closed a fenced block.
container._lastLineBlank = blank &&
!(t === 'BlockQuote' ||
- t === 'Header' ||
(t === 'CodeBlock' && container._isFenced) ||
(t === 'Item' &&
!container._firstChild &&