| 1 |
<p>Anything can be captioned.</p> |
| 2 |
<figure> |
| 3 |
<div class="src src-sh"> |
| 4 |
<div class="highlight"> |
| 5 |
<pre> |
| 6 |
echo "i have a caption!" |
| 7 |
</pre> |
| 8 |
</div> |
| 9 |
</div> |
| 10 |
<figcaption> |
| 11 |
captioned soure block |
| 12 |
</figcaption> |
| 13 |
</figure> |
| 14 |
<figure> |
| 15 |
<img src="https://placekitten.com/200/200#.png" alt="https://placekitten.com/200/200#.png" title="https://placekitten.com/200/200#.png" /><figcaption> |
| 16 |
captioned link (image in this case) |
| 17 |
</figcaption> |
| 18 |
</figure> |
| 19 |
<p> |
| 20 |
note that the whole paragraph is captioned, so a linebreak is needed for images to caption correctly</p> |
| 21 |
<figure> |
| 22 |
<p><img src="https://placekitten.com/200/200#.png" alt="https://placekitten.com/200/200#.png" title="https://placekitten.com/200/200#.png" /> |
| 23 |
see?</p> |
| 24 |
<figcaption> |
| 25 |
captioned link (image in this case) |
| 26 |
</figcaption> |
| 27 |
</figure> |