diff options
author | 2024-10-14 11:43:44 +0200 | |
---|---|---|
committer | 2024-10-14 11:43:44 +0200 | |
commit | be3b8076ca1deab9c60c61fcc8599f5d48e92e52 (patch) | |
tree | 718fc676925d8e8a9250f38d4b8b6eda0653121b /vendor/github.com/yuin/goldmark/parser/parser.go | |
parent | [chore] Clarify supported platforms, add notes + docs (#3427) (diff) | |
download | gotosocial-be3b8076ca1deab9c60c61fcc8599f5d48e92e52.tar.xz |
[chore]: Bump github.com/yuin/goldmark from 1.7.4 to 1.7.6 (#3430)
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.7.4 to 1.7.6.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.7.4...v1.7.6)
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/yuin/goldmark/parser/parser.go')
-rw-r--r-- | vendor/github.com/yuin/goldmark/parser/parser.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/github.com/yuin/goldmark/parser/parser.go b/vendor/github.com/yuin/goldmark/parser/parser.go index 5cc2175f9..b59666c6d 100644 --- a/vendor/github.com/yuin/goldmark/parser/parser.go +++ b/vendor/github.com/yuin/goldmark/parser/parser.go @@ -878,10 +878,17 @@ func (p *parser) Parse(reader text.Reader, opts ...ParseOption) ast.Node { blockReader := text.NewBlockReader(reader.Source(), nil) p.walkBlock(root, func(node ast.Node) { p.parseBlock(blockReader, node, pc) + lines := node.Lines() + if lines != nil && lines.Len() != 0 { + s := lines.At(lines.Len() - 1) + s.EOB = true + lines.Set(lines.Len()-1, s) + } }) for _, at := range p.astTransformers { at.Transform(root, reader, pc) } + // root.Dump(reader.Source(), 0) return root } @@ -1256,4 +1263,5 @@ func (p *parser) parseBlock(block text.BlockReader, parent ast.Node, pc Context) for _, ip := range p.closeBlockers { ip.CloseBlock(parent, block, pc) } + } |