Skip to content

Commit d70a7ff

Browse files
authored
🐛 FIX: empty lines after certain lists raises exception (#36)
1 parent ef59092 commit d70a7ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

markdown_it/rules_block/list.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,12 @@ def list_block(state: StateBlock, startLine: int, endLine: int, silent: bool):
282282

283283
nextLine = startLine = state.line
284284
itemLines[1] = nextLine
285-
contentStart = state.bMarks[startLine]
286285

287286
if nextLine >= endLine:
288287
break
289288

289+
contentStart = state.bMarks[startLine]
290+
290291
#
291292
# Try to check if list is terminated or continued.
292293
#

0 commit comments

Comments
 (0)