Fix invalid handling of settext in lists

This commit is contained in:
yuin 2020-03-10 16:31:28 +09:00
parent fea52e86ab
commit 2bfdf48a98

View file

@ -191,7 +191,7 @@ func (b *listParser) Continue(node ast.Node, reader text.Reader, pc Context) Sta
isHeading := false
last := pc.LastOpenedBlock().Node
if ast.IsParagraph(last) {
c, ok := matchesSetextHeadingBar(line)
c, ok := matchesSetextHeadingBar(line[match[3]-1:])
if ok && c == '-' {
isHeading = true
}