[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: Wed, 25 Jan 2017 15:59:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)


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


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


Human: An animal that complicates things more than strictly necessary

reply via email to

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