[Top][All Lists]

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

Re: [O] extra paragraph in image export?

From: Matt Price
Subject: Re: [O] extra paragraph in image export?
Date: Sat, 21 Jan 2017 18:09:08 -0500

On Sat, Jan 21, 2017 at 11:26 AM, Matt Price <address@hidden> wrote:
with org-html-html5-fancy is non-nil, images are exported with something like this code:

<p><img src="" href="https://imgs.xkcd.com/comics/proof_2x.png" target="_blank">https://imgs.xkcd.com/comics/proof_2x.png" alt="proof_2x.png" class="fragment (appear) visible current-fragment" data-fragment-index="0"></p>

There is some cruft in here -- I hastily copied from `inspect element` instead of from the code itself, and also included some ox-reveal-specific markup.  This is a more representative output:
<p><img src="" href="https://imgs.xkcd.com/comics/proof_2x.png" target="_blank">https://imgs.xkcd.com/comics/proof_2x.png" alt="proof_2x.png"></p>

The following's still true:

At least in ox-reveal, this makes it quite difficult to address images separately from text (e.g., to set the text-align property appropriately).  You can try this if you have ox-reveal installed with any simple image:
* Test

At least on my machine, the image won't be centered in the resultant slide, and it will be hard to construct CSS to fix the issue. 

Is there a strong reason to include the <p> tag? I've removed it from org-html--wrap-image and haven't noticed any ill effects so far, but haven't done much testing. 

reply via email to

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