I want to rewrite the caption output code - today, it outputs a
<div> within a
<p>-tag (most likely), and a
<p>-tag to display the text - this should be changed to a
<p>-tag as the containing block, and a
<span>-tag for the caption-text - this works just fine, and validates without problems.
So... where is the output-code for the [caption]-shortcode situated? If I could just find this, I'd be able to fix this myself, and avoid having to do this manually each and every time.