Skip to content

Commit 9513526

Browse files
committed
fix list spacing
1 parent ec7c352 commit 9513526

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Parser.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Parser.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,6 @@ class Parser
408408
if (@isBlock 'list') and not line.match /^\s*\[((?:[^\]]|\\\]|\\\[)+?)\]:\s*(.+)$/
409409
if !!(line.match /^(\s*)(~{3,}|`{3,})([^`~]*)$/i)
410410
# ignore code
411-
state.empty = 0
412411
return yes
413412
else if (state.empty <= 1) and !!(matches = line.match /^(\s*)\S+/) and matches[1].length >= (block[3][0] + state.empty)
414413
state.empty = 0
@@ -449,6 +448,7 @@ class Parser
449448
isAfterList = block[3][2]
450449

451450
if isAfterList
451+
state.empty = 0
452452
@combineBlock().setBlock(key)
453453
else
454454
(@setBlock key).endBlock()

0 commit comments

Comments
 (0)