emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* extra paragraph in image export?
@ 2017-01-21 16:26 Matt Price
  2017-01-21 23:09 ` Matt Price
  2017-01-22 13:18 ` Nicolas Goaziou
  0 siblings, 2 replies; 12+ messages in thread
From: Matt Price @ 2017-01-21 16:26 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 855 bytes --]

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>


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
[[https://imgs.xkcd.com/comics/proof_2x.png]]

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

[-- Attachment #2: Type: text/html, Size: 1197 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-01-25 18:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-21 16:26 extra paragraph in image export? Matt Price
2017-01-21 23:09 ` Matt Price
2017-01-22 13:18 ` Nicolas Goaziou
2017-01-24  9:40   ` Rasmus
2017-01-24 21:27     ` Nicolas Goaziou
2017-01-25  3:57       ` Matt Price
2017-01-25  4:04       ` Matt Price
2017-01-25 13:13         ` Nicolas Goaziou
2017-01-25 14:59           ` Rasmus
2017-01-25 15:01       ` Rasmus
2017-01-25 16:59         ` Nicolas Goaziou
2017-01-25 18:02           ` Matt Price

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).