From 9e904d756be02ca30e4cd9abb1eae8ba01f9c8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 29 May 2022 16:41:57 +0200 Subject: Make .RenderString render shortcodes Fixes #6703 --- hugolib/shortcode_test.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'hugolib/shortcode_test.go') diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index cafe76703..15c27a42e 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -107,15 +107,9 @@ title: "Shortcodes Galore!" t.Parallel() c := qt.New(t) - counter := 0 - placeholderFunc := func() string { - counter++ - return fmt.Sprintf("HAHA%s-%dHBHB", shortcodePlaceholderPrefix, counter) - } - p, err := pageparser.ParseMain(strings.NewReader(test.input), pageparser.Config{}) c.Assert(err, qt.IsNil) - handler := newShortcodeHandler(nil, s, placeholderFunc) + handler := newShortcodeHandler(nil, s) iter := p.Iterator() short, err := handler.extractShortcode(0, 0, iter) -- cgit v1.2.3