From 5dfc1dedb8ac53b7a2d3823d06808ae86f90b3d9 Mon Sep 17 00:00:00 2001 From: spf13 Date: Thu, 16 Oct 2014 20:20:09 -0400 Subject: Big refactor of how source files are used. Also added default destination extension option. --- 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 1635ece99..ef413bfb3 100644 --- a/hugolib/shortcode.go +++ b/hugolib/shortcode.go @@ -20,6 +20,7 @@ import ( "strings" "unicode" + "github.com/spf13/hugo/helpers" jww "github.com/spf13/jwalterweatherman" ) @@ -93,7 +94,7 @@ func ShortcodesHandle(stringToParse string, p *Page, t Template) string { var data = &ShortcodeWithPage{Params: params, Page: p} if endStart > 0 { s := stringToParse[leadEnd+3 : leadEnd+endStart] - data.Inner = template.HTML(renderBytes([]byte(CleanP(ShortcodesHandle(s, p, t))), p.guessMarkupType(), p.UniqueId())) + data.Inner = template.HTML(helpers.RenderBytes([]byte(CleanP(ShortcodesHandle(s, p, t))), p.guessMarkupType(), p.UniqueId())) remainder := CleanP(stringToParse[leadEnd+endEnd:]) return CleanP(stringToParse[:leadStart]) + -- cgit v1.2.3