I’m not a fan of removing the in-text captions from the examples all together as in my view that would violate [Guideline 1.3.1](http://www.w3.org/TR/2008/REC-WCAG20-20081211/#content-structure-separation-programmatic) – at least it doesn’t make for a good example.