shouldn't use &lt;example> tag for this, because it's really just a code example, there's nothing to preview in the rendered viewport.

Unless you think it would benefit from a rendered example, it's better to just use a GFM code snippet