diff --git a/_test/extra.txt b/_test/extra.txt index 7e849f1..f4baf84 100644 --- a/_test/extra.txt +++ b/_test/extra.txt @@ -562,3 +562,11 @@ x //- - - - - - - - -//
[ ](y)
a +*
+//= = = = = = = = = = = = = = = = = = = = = = = =// diff --git a/parser/list.go b/parser/list.go index 4142c22..5be0747 100644 --- a/parser/list.go +++ b/parser/list.go @@ -144,7 +144,7 @@ func (b *listParser) Open(parent ast.Node, reader text.Reader, pc Context) (ast. return nil, NoChildren } //an empty list item cannot interrupt a paragraph: - if match[5]-match[4] <= 1 { + if match[4] < 0 || util.IsBlank(line[match[4]:match[5]]) { return nil, NoChildren } }