diff options
Diffstat (limited to 'vendor/github.com/yuin/goldmark/parser/setext_headings.go')
| -rw-r--r-- | vendor/github.com/yuin/goldmark/parser/setext_headings.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vendor/github.com/yuin/goldmark/parser/setext_headings.go b/vendor/github.com/yuin/goldmark/parser/setext_headings.go index 915bcc1..3558baa 100644 --- a/vendor/github.com/yuin/goldmark/parser/setext_headings.go +++ b/vendor/github.com/yuin/goldmark/parser/setext_headings.go @@ -95,6 +95,7 @@ func (b *setextHeadingParser) Close(node ast.Node, reader text.Reader, pc Contex } heading.Parent().RemoveChild(heading.Parent(), heading) } else { + heading.SetPos(tmp.Lines().At(0).Start) heading.SetLines(tmp.Lines()) heading.SetBlankPreviousLines(tmp.HasBlankPreviousLines()) tp := tmp.Parent() |
