aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/templates/util_render.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/templates/util_render.go b/modules/templates/util_render.go
index 84c3a1587a..8621a371bd 100644
--- a/modules/templates/util_render.go
+++ b/modules/templates/util_render.go
@@ -230,6 +230,7 @@ func RenderMarkdownToHtml(ctx context.Context, input string) template.HTML { //n
output, err := markdown.RenderString(&markup.RenderContext{
Ctx: ctx,
URLPrefix: setting.AppSubURL,
+ Metas: map[string]string{"mode": "document"},
}, input)
if err != nil {
log.Error("RenderString: %v", err)