parent
93f34fd8a2
commit
efc5a7171b
|
@ -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 {
|
||||||
|
if image {
|
||||||
link = strings.Replace(link, " ", "+", -1)
|
link = strings.Replace(link, " ", "+", -1)
|
||||||
|
} else {
|
||||||
|
link = strings.Replace(link, " ", "-", -1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if image {
|
if image {
|
||||||
if !absoluteLink {
|
if !absoluteLink {
|
||||||
|
|
Loading…
Reference in New Issue