package renderers import ( "testing" "github.com/stretchr/testify/require" ) func renderMarkdownString(s string) string { return string(renderMarkdown([]byte(s))) } func TestRenderMarkdown(t *testing.T) { require.Equal(t, "
b
\n", renderMarkdownString("*b*")) require.Equal(t, "b
\nb
\nb
\n