}
return &HugoHTMLRenderer{
- FileResolver: ctx.FileResolver,
- LinkResolver: ctx.LinkResolver,
- Renderer: blackfriday.HtmlRendererWithParameters(htmlFlags, "", "", renderParameters),
+ RenderingContext: ctx,
+ Renderer: blackfriday.HtmlRendererWithParameters(htmlFlags, "", "", renderParameters),
}
}
// HugoHTMLRenderer wraps a blackfriday.Renderer, typically a blackfriday.Html
// Enabling Hugo to customise the rendering experience
type HugoHTMLRenderer struct {
- FileResolver FileResolverFunc
- LinkResolver LinkResolverFunc
+ *RenderingContext
blackfriday.Renderer
}