mirror of
https://github.com/go-gitea/gitea
synced 2025-08-11 12:08:21 +00:00
@@ -391,7 +391,11 @@ func RenderShortLinks(rawBytes []byte, urlPrefix string, noLink bool, isWikiMark
|
|||||||
}
|
}
|
||||||
absoluteLink := isLink([]byte(link))
|
absoluteLink := isLink([]byte(link))
|
||||||
if !absoluteLink {
|
if !absoluteLink {
|
||||||
link = strings.Replace(link, " ", "+", -1)
|
if image {
|
||||||
|
link = strings.Replace(link, " ", "+", -1)
|
||||||
|
} else {
|
||||||
|
link = strings.Replace(link, " ", "-", -1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if image {
|
if image {
|
||||||
if !absoluteLink {
|
if !absoluteLink {
|
||||||
|
Reference in New Issue
Block a user