aboutsummaryrefslogtreecommitdiff
path: root/internal/markup
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-01-13 10:13:36 +0800
committerGitHub <noreply@github.com>2022-01-13 10:13:36 +0800
commit5e43fa92ff5d7aa53eec1c7e6756a9adb34a6d45 (patch)
tree3c8071b354859f550eb5d9debadb918308a5ce8f /internal/markup
parent539e2a8b4274ba201d073e91f1cc1d0f303cebc2 (diff)
markup: use default link formation when no format in metas (#6723)
Diffstat (limited to 'internal/markup')
-rw-r--r--internal/markup/markup.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/markup/markup.go b/internal/markup/markup.go
index 788708e7..ae19ddeb 100644
--- a/internal/markup/markup.go
+++ b/internal/markup/markup.go
@@ -101,7 +101,7 @@ func RenderIssueIndexPattern(rawBytes []byte, urlPrefix string, metas map[string
m = m[1:]
}
var link string
- if metas == nil {
+ if metas == nil || metas["format"] == "" {
link = fmt.Sprintf(`<a href="%s/issues/%s">%s</a>`, urlPrefix, m[1:], m)
} else {
// Support for external issue tracker