```
% pandoc -t gfm
::::{.bug}
I am a [bug]{#bug}.
::::
^D
<div class="bug">

I am a <span id="bug">bug</span>.

</div>
```