Skip to content

Commit

Permalink
Fix #313
Browse files Browse the repository at this point in the history
  • Loading branch information
yuin committed Jul 9, 2022
1 parent 8c219a7 commit c085632
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions _test/extra.txt
Original file line number Diff line number Diff line change
Expand Up @@ -716,3 +716,15 @@ a <!-- b -->
//= = = = = = = = = = = = = = = = = = = = = = = =//


56: An empty list followed by blockquote
//- - - - - - - - -//
1.
> This is a quote.
//- - - - - - - - -//
<ol>
<li></li>
</ol>
<blockquote>
<p>This is a quote.</p>
</blockquote>
//= = = = = = = = = = = = = = = = = = = = = = = =//
4 changes: 4 additions & 0 deletions parser/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ func (b *listParser) Continue(node ast.Node, reader text.Reader, pc Context) Sta
}
}

if lastIsEmpty && indent < offset {
return Close
}

// Non empty items can not exist next to an empty list item
// with blank lines. So we need to close the current list
//
Expand Down

0 comments on commit c085632

Please sign in to comment.