diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-21 09:28:01 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-21 09:32:44 -0800 |
commit | 625c93769b81938781ba19450b15debd4ef7e396 (patch) | |
tree | 347797c80723edc8df380dfe5b721eea82576cb8 /js/lib | |
parent | 6e201b744581bb080dad8dfe40247f73688ede2d (diff) |
Removed unnecessary check.
Diffstat (limited to 'js/lib')
-rw-r--r-- | js/lib/blocks.js | 4 |
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 && |