This goldmark extension adds support for parse code blocks as poems.
var source = []byte(`# Sample
Alas for man! day after day may rise,
Night may shade his thankless head,
He sees no God in the bright, morning skies
He sings no praises from his guarded bed.
`)
md := goldmark.New(
goldmark.WithExtensions(poems.Extension))
err := md.Convert(source, os.Stdout)
<h1>Sample</h1>
<div class="poem">Alas for man! day after day may rise,<br>
Night may shade his thankless head,<br>
He sees no God in the bright, morning skies<br>
He sings no praises from his guarded bed.</div>