aboutsummaryrefslogtreecommitdiffstats
path: root/modules/markup/markdown/transform_image.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/markup/markdown/transform_image.go')
-rw-r--r--modules/markup/markdown/transform_image.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markup/markdown/transform_image.go b/modules/markup/markdown/transform_image.go
index b2262c1c78..c2cbffc1c1 100644
--- a/modules/markup/markdown/transform_image.go
+++ b/modules/markup/markdown/transform_image.go
@@ -21,7 +21,7 @@ func (g *ASTTransformer) transformImage(ctx *markup.RenderContext, v *ast.Image)
// Check if the destination is a real link
if len(v.Destination) > 0 && !markup.IsFullURLBytes(v.Destination) {
v.Destination = []byte(giteautil.URLJoin(
- ctx.Links.ResolveMediaLink(ctx.IsMarkupContentWiki()),
+ ctx.RenderOptions.Links.ResolveMediaLink(ctx.IsMarkupContentWiki()),
strings.TrimLeft(string(v.Destination), "/"),
))
}