diff options
author | zeripath <art27@cantab.net> | 2022-01-29 13:17:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-29 21:17:21 +0800 |
commit | b34923d919c220798c7d2530dcd892916b7f01e5 (patch) | |
tree | 9f41612cdc60356c9ae885d3e7bd19399467c3ea /modules/markup | |
parent | f7b152f1262e5bec4f6aec061e2ded65d0b53893 (diff) | |
download | gitea-b34923d919c220798c7d2530dcd892916b7f01e5.tar.gz gitea-b34923d919c220798c7d2530dcd892916b7f01e5.zip |
Update Goldmark to Goldmark 1.4.4 (#18420)
* Update Goldmark to Goldmark 1.4.4
* nolint the deprecation
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/markup')
-rw-r--r-- | modules/markup/common/footnote.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/markup/common/footnote.go b/modules/markup/common/footnote.go index 7b6c57f927..821b3e6387 100644 --- a/modules/markup/common/footnote.go +++ b/modules/markup/common/footnote.go @@ -204,7 +204,7 @@ func (b *footnoteBlockParser) Open(parent ast.Node, reader text.Reader, pc parse } open := pos + 1 closes := 0 - closure := util.FindClosure(line[pos+1:], '[', ']', false, false) + closure := util.FindClosure(line[pos+1:], '[', ']', false, false) //nolint closes = pos + 1 + closure next := closes + 1 if closure > -1 { @@ -294,7 +294,7 @@ func (s *footnoteParser) Parse(parent ast.Node, block text.Reader, pc parser.Con return nil } open := pos - closure := util.FindClosure(line[pos:], '[', ']', false, false) + closure := util.FindClosure(line[pos:], '[', ']', false, false) //nolint if closure < 0 { return nil } |