I didn't consider that all newlines in the pre block will be printed and we thus shouldn't wrap html that has it's tags on separate lines (i.e. contains superfluous newlines) - wrapping in a div less accurately represents org-html-export but it provides the same information and gives us more freedom in the return value of HighlightCodeBlock as well as allowing us to keep the html tags on new lines (consistency).
20 lines
616 B
HTML
20 lines
616 B
HTML
<figure>
|
|
<div class="src src-sh a b c d" id="it">
|
|
<div class="highlight">
|
|
<pre>echo "a bash source block with custom html attributes"
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
<figcaption>
|
|
and <span style="text-decoration: underline;">multiple</span> lines of <strong>captions</strong>!
|
|
</figcaption>
|
|
</figure>
|
|
<p>
|
|
and an image with custom html attributes and a caption
|
|
</p>
|
|
<figure>
|
|
<img src="https://placekitten.com/200/200#.png" alt="https://placekitten.com/200/200#.png" title="https://placekitten.com/200/200#.png" style="height: 100%; border: 10px solid black;" id="kittens"/>
|
|
<figcaption>
|
|
kittens!
|
|
</figcaption>
|
|
</figure>
|