diff options
author | Unknwon <u@gogs.io> | 2015-11-24 19:28:24 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-24 19:28:24 -0500 |
commit | 968edb3e4450a82fb4756603057caca55e6aea5b (patch) | |
tree | ee959e933c820cf1b405049966998211e7d03bb3 /modules/base | |
parent | 3ca544912fe84f5a3202855037a110af40809d43 (diff) | |
download | gitea-968edb3e4450a82fb4756603057caca55e6aea5b.tar.gz gitea-968edb3e4450a82fb4756603057caca55e6aea5b.zip |
more link fix
Diffstat (limited to 'modules/base')
-rw-r--r-- | modules/base/markdown.go | 4 |
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) |