From 2079a23dd89734cea39e523faf46e44201151279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 7 Aug 2016 14:03:03 +0200 Subject: Make it possible to configure Blackfroday per language See #2309 --- hugolib/shortcode.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hugolib/shortcode.go') 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 -- cgit v1.2.3