diff --git a/tpl/transform/transform.go b/tpl/transform/transform.go index b41b41b9cd5..8d404f5a7a5 100644 --- a/tpl/transform/transform.go +++ b/tpl/transform/transform.go @@ -79,8 +79,11 @@ func (ns *Namespace) HTMLUnescape(s interface{}) (string, error) { return html.UnescapeString(ss), nil } -var markdownTrimPrefix = []byte("

") -var markdownTrimSuffix = []byte("

\n") +var ( + markdownTrimPrefix = []byte("

") + markdownTrimSuffix = []byte("

\n") + markdownParagraphIndicator = []byte("#First

\n\n

This is some bold text.

\n\n

Second

\n\n

This is some more text.

\n\n

And then some.

\n"), + result) + +} + func TestPlainify(t *testing.T) { t.Parallel()