diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-08-07 14:03:03 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-09-06 18:32:17 +0300 |
commit | 2079a23dd89734cea39e523faf46e44201151279 (patch) | |
tree | 5b5163a12cf874863eea889685d65a3c5b56515c /hugolib/shortcode.go | |
parent | 596e0e98e4483d2a0a709412a338ceddb6538757 (diff) |
Make it possible to configure Blackfroday per language
See #2309
Diffstat (limited to 'hugolib/shortcode.go')
-rw-r--r-- | hugolib/shortcode.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/shortcode.go b/hugolib/shortcode.go index b63ba4a49..52cd6893b 100644 --- a/hugolib/shortcode.go +++ b/hugolib/shortcode.go @@ -242,7 +242,8 @@ func renderShortcode(sc shortcode, parent *ShortcodeWithPage, p *Page, t tpl.Tem if sc.doMarkup { newInner := helpers.RenderBytes(&helpers.RenderingContext{ Content: []byte(inner), PageFmt: p.determineMarkupType(), - DocumentID: p.UniqueID(), Config: p.getRenderingConfig()}) + ConfigProvider: p.Language(), + DocumentID: p.UniqueID(), Config: p.getRenderingConfig()}) // If the type is “unknown” or “markdown”, we assume the markdown // generation has been performed. Given the input: `a line`, markdown |