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\nThis is some bold text.
\n\nThis is some more text.
\n\nAnd then some.
\n"), + result) + +} + func TestPlainify(t *testing.T) { t.Parallel()