From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: extra paragraph in image export? Date: Tue, 24 Jan 2017 10:40:32 +0100 Message-ID: <87sho8ztgv.fsf@gmx.us> References: <87lgu3b5c8.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVxbV-0007Iu-Q6 for emacs-orgmode@gnu.org; Tue, 24 Jan 2017 04:41:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVxbR-0001EL-2G for emacs-orgmode@gnu.org; Tue, 24 Jan 2017 04:41:29 -0500 Received: from [195.159.176.226] (port=33340 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cVxbQ-0001Dt-RU for emacs-orgmode@gnu.org; Tue, 24 Jan 2017 04:41:24 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cVxav-0001V0-EF for emacs-orgmode@gnu.org; Tue, 24 Jan 2017 10:40:53 +0100 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 Hi, >> with org-html-html5-fancy is non-nil, images are exported with something >> like this code: >> >>
>>

proof_2x.png> class="fragment (appear) visible current-fragment" >> data-fragment-index="0">

>>
I'm not an expert of HTML either. However, the "p" tag inside the "figure" is uncommon looking a bit on the example usages online. Thus, I agree with Matt that it should probably not be there. > I'm not well-versed enough in HTML to answer this, but, from Org POV, > there should be a difference between > > A paragraph > > #+caption: foo > [[block-image.png]] > > Another paragraph > > > and > > A paragraph with an [[inline-image.png]] and some text following. > > Would removing the

tag blur the difference between the two examples > above ? (I hope I understand your concern correctly). AFAIK, the CSS selector still differs so on the output side they are not alike. I.e. the former is "figure>img" the other is a "p>img". Aside: If anything, removing the "p" tag inside the figure would make it easier to handle images. Rasmus -- Vote for proprietary math!