aboutsummaryrefslogtreecommitdiffstats
path: root/modules/base
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-24 19:28:24 -0500
committerUnknwon <u@gogs.io>2015-11-24 19:28:24 -0500
commit968edb3e4450a82fb4756603057caca55e6aea5b (patch)
treeee959e933c820cf1b405049966998211e7d03bb3 /modules/base
parent3ca544912fe84f5a3202855037a110af40809d43 (diff)
downloadgitea-968edb3e4450a82fb4756603057caca55e6aea5b.tar.gz
gitea-968edb3e4450a82fb4756603057caca55e6aea5b.zip
more link fix
Diffstat (limited to 'modules/base')
-rw-r--r--modules/base/markdown.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/base/markdown.go b/modules/base/markdown.go
index cf7a3193f8..06de146726 100644
--- a/modules/base/markdown.go
+++ b/modules/base/markdown.go
@@ -299,6 +299,10 @@ OUTER_LOOP:
}
case html.EndTagToken:
+ if len(startTags) == 0 {
+ break
+ }
+
buf.Write(leftAngleBracket)
buf.WriteString(startTags[len(startTags)-1])
buf.Write(rightAngleBracket)