From 2bfdf48a98aa8b01fe3ebeab2a3ce51a3d72f159 Mon Sep 17 00:00:00 2001 From: yuin Date: Tue, 10 Mar 2020 16:31:28 +0900 Subject: [PATCH] Fix invalid handling of settext in lists --- parser/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/list.go b/parser/list.go index df1607e..9183a6d 100644 --- a/parser/list.go +++ b/parser/list.go @@ -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 }