aboutsummaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2020-03-01 14:01:44 +0100
committerGitHub <noreply@github.com>2020-03-01 15:01:44 +0200
commitf9d34b2c604b1f5058a7605bf23273ec73bc78ad (patch)
treeb2b2feb2e94c423bbea81495432e6f04a95fc26d /vendor
parent14f3593f2027ee39b748c601ff9440e439db5f45 (diff)
downloadgitea-f9d34b2c604b1f5058a7605bf23273ec73bc78ad.tar.gz
gitea-f9d34b2c604b1f5058a7605bf23273ec73bc78ad.zip
vendor: update github.com/yuin/goldmark to v1.1.24 (#10551)
Diffstat (limited to 'vendor')
-rw-r--r--vendor/github.com/yuin/goldmark/text/reader.go6
-rw-r--r--vendor/modules.txt2
2 files changed, 6 insertions, 2 deletions
diff --git a/vendor/github.com/yuin/goldmark/text/reader.go b/vendor/github.com/yuin/goldmark/text/reader.go
index a8db23b0ef..df25e5457c 100644
--- a/vendor/github.com/yuin/goldmark/text/reader.go
+++ b/vendor/github.com/yuin/goldmark/text/reader.go
@@ -332,7 +332,11 @@ func (r *blockReader) PrecendingCharacter() rune {
if r.pos.Padding != 0 {
return rune(' ')
}
- if r.pos.Start <= 0 {
+ if r.segments.Len() < 1 {
+ return rune('\n')
+ }
+ firstSegment := r.segments.At(0)
+ if r.line == 0 && r.pos.Start <= firstSegment.Start {
return rune('\n')
}
l := len(r.source)
diff --git a/vendor/modules.txt b/vendor/modules.txt
index 933ac66133..e26566e592 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -450,7 +450,7 @@ github.com/willf/bitset
github.com/xanzy/ssh-agent
# github.com/yohcop/openid-go v0.0.0-20160914080427-2c050d2dae53
github.com/yohcop/openid-go
-# github.com/yuin/goldmark v1.1.23
+# github.com/yuin/goldmark v1.1.24
github.com/yuin/goldmark
github.com/yuin/goldmark/ast
github.com/yuin/goldmark/extension