[Top][All Lists]

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

Re: [O] extra paragraph in image export?

From: Rasmus
Subject: Re: [O] extra paragraph in image export?
Date: Tue, 24 Jan 2017 10:40:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)


>> with org-html-html5-fancy is non-nil, images are exported with something
>> like this code:
>> <figure>
>> <p><img src="https://imgs.xkcd.com/comics/proof_2x.png"; alt="proof_2x.png"
>> class="fragment (appear) visible current-fragment"
>> data-fragment-index="0"></p>
>> </figure>

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 <p> 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.


Vote for proprietary math!

reply via email to

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