refactor: focus around Render/Compact/Pretty/NewWith functions

This is yet another drastic refactor of public API and concepts.
Hopefully the last one, as I'm now fairly happy with things.
This commit is contained in:
2024-03-25 01:40:31 +00:00
parent de3a9e55a8
commit e2e2754970
18 changed files with 1462 additions and 387 deletions

View File

@@ -216,3 +216,9 @@ func TestText_Render(t *testing.T) {
})
}
}
func TestText_Formats(t *testing.T) {
h := &Text{}
assert.Equal(t, []string{"text", "txt", "plain"}, h.Formats())
}