Skip to content

Commit c085632

Browse files
committed
Fix #313
1 parent 8c219a7 commit c085632

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

_test/extra.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,3 +716,15 @@ a <!-- b -->
716716
//= = = = = = = = = = = = = = = = = = = = = = = =//
717717

718718

719+
56: An empty list followed by blockquote
720+
//- - - - - - - - -//
721+
1.
722+
> This is a quote.
723+
//- - - - - - - - -//
724+
<ol>
725+
<li></li>
726+
</ol>
727+
<blockquote>
728+
<p>This is a quote.</p>
729+
</blockquote>
730+
//= = = = = = = = = = = = = = = = = = = = = = = =//

parser/list.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ func (b *listParser) Continue(node ast.Node, reader text.Reader, pc Context) Sta
226226
}
227227
}
228228

229+
if lastIsEmpty && indent < offset {
230+
return Close
231+
}
232+
229233
// Non empty items can not exist next to an empty list item
230234
// with blank lines. So we need to close the current list
231235
//

0 commit comments

Comments
 (0)