Browse Source

Merge pull request #1949 from TheHowl/develop

Fix bad issue links in non-readme markdown files
for-closed-social
Unknwon 9 years ago
parent
commit
35d49d3b34
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/base/markdown.go

+ 3
- 0
modules/base/markdown.go View File

@ -168,6 +168,9 @@ func RenderSha1CurrentPattern(rawBytes []byte, urlPrefix string) []byte {
}
func RenderIssueIndexPattern(rawBytes []byte, urlPrefix string) []byte {
if i := strings.Index(urlPrefix, "/src"); i != -1 {
urlPrefix = urlPrefix[:i]
}
ms := issueIndexPattern.FindAll(rawBytes, -1)
for _, m := range ms {
var space string

Loading…
Cancel
Save