go-org-orgwiki/org/testdata/captions.html
Niklas Fasching 37d33c1206 HTML export: Export src block language as css class
Org mode exports source blocks with the language as a css-class of the exported
source block - it's easy enough to do the same.
2019-07-07 10:19:24 +02:00

32 lines
778 B
HTML

<p>
Anything can be captioned.
</p>
<figure>
<pre class="src src-sh">
<div class="highlight">
<pre>
echo &#34;i have a caption!&#34;
</pre>
</div>
</pre>
<figcaption>
captioned soure block
</figcaption>
</figure>
<figure>
<img src="https://placekitten.com/200/200#.png" alt="https://placekitten.com/200/200#.png" title="https://placekitten.com/200/200#.png" /><figcaption>
captioned link (image in this case)
</figcaption>
</figure>
<p>
note that the whole paragraph is captioned, so a linebreak is needed for images to caption correctly
</p>
<figure>
<p>
<img src="https://placekitten.com/200/200#.png" alt="https://placekitten.com/200/200#.png" title="https://placekitten.com/200/200#.png" />
see?
</p>
<figcaption>
captioned link (image in this case)
</figcaption>
</figure>