From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: apply attr_html to a whole figure? Date: Thu, 22 Sep 2016 17:50:44 +0800 Message-ID: <87bmzg2rgr.fsf@ericabrahamsen.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0ew-0003aO-4x for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 05:51:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn0eq-0008BG-8L for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 05:51:13 -0400 Received: from [195.159.176.226] (port=34951 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0eq-0008AL-1J for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 05:51:08 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bn0ec-0006I0-Fm for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 11:50:54 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Matt Price writes: > When exporting images with captions, ox-html currently creates a > strucuture like this: > >
>

hlevel.png >

>

Figure 1: "test"

>
> > (I've tried setting org-html-html5-fancy" to t, but for whatever > reason this doesn't result in the useo f the
tag. I tried > with emacs -q with no luck). It looks like `org-html--wrap-image' should be responsible for using a proper "figure" element, maybe try edebugging it and see what it's doing? This may be obvious, but the document has to be exported as html5 before html5-fancy has any effect! Eric