Improving the WordPress caption shortcode for HTML5

Improving the WordPress caption shortcode for HTML5

The WordPress caption shortcode is probably one of the most used shortcodes. But the resulting HTML lacks semantic sexiness, here’s how to improve it.