[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: |
Wed, 25 Jan 2017 15:59:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Hi,
>> I'm not sure. Doesn't look like it to me -- I would instead have put:
>>
>> - (format "\n<p>%s</p>" contents)
>> + (format "\n%s" contents)
>>
>> Because we never want the <p> tag inside the figure. Isn't that right?
>
> I don't think so. When `org-html-html5-fancy' is non-nil, "ox-html.el"
> uses <p> tags to separate image and caption.
I agree that the <p> could be retained in the non-HTML5 case. That
corresponds to the W3 example below. Note, strictly speaking I guess the
non-HTML5 org html output is not necessarily "HTML4", so the example may
not apply.
https://www.w3.org/Style/Examples/007/figures.en.html#Illustrati
> Moreover, there is no <figure> in that case, but a <div
> class=\"figure\">. Can't this contain a <p> block element?
Yes. HTML5 "figure" can hold "p" as well, but it's not necessary, and it
seems to be uncommon.
Rasmus
--
Human: An animal that complicates things more than strictly necessary
- [O] extra paragraph in image export?, Matt Price, 2017/01/21
- Re: [O] extra paragraph in image export?, Matt Price, 2017/01/21
- Re: [O] extra paragraph in image export?, Nicolas Goaziou, 2017/01/22
- Re: [O] extra paragraph in image export?, Rasmus, 2017/01/25
- Re: [O] extra paragraph in image export?, Nicolas Goaziou, 2017/01/25
- Re: [O] extra paragraph in image export?, Matt Price, 2017/01/25