emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] apply attr_html to a whole figure?


From: Matt Price
Subject: [O] apply attr_html to a whole figure?
Date: Wed, 21 Sep 2016 21:11:34 -0400

When exporting images with captions, ox-html currently creates a strucuture like this:


<div class="figure">
<p><img src="" alt="hlevel.png">
</p>
<p><span class="figure-number">Figure 1:</span> "test"</p>
</div>

(I've tried setting org-html-html5-fancy" to t, but for whatever reason this doesn't result in the useo f the <figure> tag. I tried with emacs -q with no luck).

I would like to be able to give an additional class to the enclosing <div class="figure">.  Any idea how i might be able to do that? As far as I can see, org-html--wrap-image does not have access to the org link element and so can't query for attributes.

I really appreciate any ideas! Thanks,
Matt


reply via email to

[Prev in Thread] Current Thread [Next in Thread]