diff options
author | Albert Nigmatzianov <albertnigma@gmail.com> | 2017-04-06 22:24:27 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-04-22 22:40:20 +0200 |
commit | 6498d73c08438c55d45900e64c2c04a375f747c2 (patch) | |
tree | f8064c8ee6bea7d8f685b696fda03b11231e1ce5 /helpers/content_renderer_test.go | |
parent | b5b6e81c0269abf9b0f4bc6a127744a25344e5c6 (diff) |
helpers: Delete RenderingContext.getConfig
Diffstat (limited to 'helpers/content_renderer_test.go')
-rw-r--r-- | helpers/content_renderer_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/content_renderer_test.go b/helpers/content_renderer_test.go index ab663966b..2f155de07 100644 --- a/helpers/content_renderer_test.go +++ b/helpers/content_renderer_test.go @@ -23,7 +23,7 @@ import ( // Renders a codeblock using Blackfriday func (c ContentSpec) render(input string) string { - ctx := newRenderingContext(c.cfg) + ctx := &RenderingContext{Cfg: c.cfg, Config: c.NewBlackfriday()} render := c.getHTMLRenderer(0, ctx) buf := &bytes.Buffer{} @@ -33,7 +33,7 @@ func (c ContentSpec) render(input string) string { // Renders a codeblock using Mmark func (c ContentSpec) renderWithMmark(input string) string { - ctx := newRenderingContext(c.cfg) + ctx := &RenderingContext{Cfg: c.cfg, Config: c.NewBlackfriday()} render := c.getMmarkHTMLRenderer(0, ctx) buf := &bytes.Buffer{} |