summaryrefslogtreecommitdiffstats
path: root/modules/markup/common/footnote.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/markup/common/footnote.go')
-rw-r--r--modules/markup/common/footnote.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/markup/common/footnote.go b/modules/markup/common/footnote.go
index 821b3e6387..d07f5e6090 100644
--- a/modules/markup/common/footnote.go
+++ b/modules/markup/common/footnote.go
@@ -203,9 +203,8 @@ func (b *footnoteBlockParser) Open(parent ast.Node, reader text.Reader, pc parse
return nil, parser.NoChildren
}
open := pos + 1
- closes := 0
closure := util.FindClosure(line[pos+1:], '[', ']', false, false) //nolint
- closes = pos + 1 + closure
+ closes := pos + 1 + closure
next := closes + 1
if closure > -1 {
if next >= len(line) || line[next] != ':' {