docs($templateCache): use GFM example format rather than <pre> tags

Updated example formatting.

Closes #6068