diff options
Diffstat (limited to 'helpers/content.go')
-rw-r--r-- | helpers/content.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helpers/content.go b/helpers/content.go index 0bb50f440..3a5f423de 100644 --- a/helpers/content.go +++ b/helpers/content.go @@ -208,7 +208,7 @@ func GetMmarkHtmlRenderer(defaultFlags int, ctx *RenderingContext) mmark.Rendere return mmark.HtmlRendererWithParameters(htmlFlags, "", "", renderParameters) } -func GetMmarkExtensions(ctx RenderingContext) int { +func GetMmarkExtensions(ctx *RenderingContext) int { flags := 0 flags |= mmark.EXTENSION_TABLES flags |= mmark.EXTENSION_FENCED_CODE @@ -234,13 +234,13 @@ func GetMmarkExtensions(ctx RenderingContext) int { func MmarkRender(ctx *RenderingContext) []byte { return mmark.Parse(ctx.Content, GetMmarkHtmlRenderer(0, ctx), - GetMmarkExtensions(*ctx)).Bytes() + GetMmarkExtensions(ctx)).Bytes() } func MmarkRenderWithTOC(ctx *RenderingContext) []byte { return mmark.Parse(ctx.Content, GetMmarkHtmlRenderer(0, ctx), - GetMmarkExtensions(*ctx)).Bytes() + GetMmarkExtensions(ctx)).Bytes() } // ExtractTOC extracts Table of Contents from content. |