summaryrefslogtreecommitdiffstats
path: root/modules/markup/html.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/markup/html.go')
-rw-r--r--modules/markup/html.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/markup/html.go b/modules/markup/html.go
index 3e976929c7..825a41dd1f 100644
--- a/modules/markup/html.go
+++ b/modules/markup/html.go
@@ -438,7 +438,7 @@ func shortLinkProcessorFull(ctx *postProcessCtx, node *html.Node, noLink bool) {
name += tail
image := false
- switch ext := filepath.Ext(string(link)); ext {
+ switch ext := filepath.Ext(link); ext {
// fast path: empty string, ignore
case "":
break
@@ -482,7 +482,7 @@ func shortLinkProcessorFull(ctx *postProcessCtx, node *html.Node, noLink bool) {
title = props["alt"]
}
if title == "" {
- title = path.Base(string(name))
+ title = path.Base(name)
}
alt := props["alt"]
if alt == "" {