diff options
Diffstat (limited to 'vendor/github.com/yuin/goldmark/parser/list_item.go')
| -rw-r--r-- | vendor/github.com/yuin/goldmark/parser/list_item.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/yuin/goldmark/parser/list_item.go b/vendor/github.com/yuin/goldmark/parser/list_item.go index f4d7da4..9bef62e 100644 --- a/vendor/github.com/yuin/goldmark/parser/list_item.go +++ b/vendor/github.com/yuin/goldmark/parser/list_item.go @@ -28,7 +28,7 @@ func (b *listItemParser) Open(parent ast.Node, reader text.Reader, pc Context) ( } offset := lastOffset(list) line, _ := reader.PeekLine() - match, typ := matchesListItem(line, false) + match, typ := parseListItem(line) if typ == notList { return nil, NoChildren } @@ -61,7 +61,7 @@ func (b *listItemParser) Continue(node ast.Node, reader text.Reader, pc Context) isEmpty := node.ChildCount() == 0 && pc.Get(emptyListItemWithBlankLines) != nil indent, _ := util.IndentWidth(line, reader.LineOffset()) if (isEmpty || indent < offset) && indent < 4 { - _, typ := matchesListItem(line, true) + _, typ := parseListItem(line) // new list item found if typ != notList { pc.Set(skipListParserKey, listItemFlagValue) |
