diff --git a/premailer/premailer_test.go b/premailer/premailer_test.go index e65f89e..3ecf015 100644 --- a/premailer/premailer_test.go +++ b/premailer/premailer_test.go @@ -504,3 +504,20 @@ func TestRetainsMsoConditionalComment(t *testing.T) { assert.Contains(t, resultHTML, ``) } + +func TestRetainsComments(t *testing.T) { + html := ` + + + + + + ` + + p, err := NewPremailerFromString(html, NewOptions()) + assert.Nil(t, err) + resultHTML, err := p.Transform() + assert.Nil(t, err) + + assert.Contains(t, resultHTML, ``) +}