all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug? svg images do not display on modenr browser on export
@ 2019-01-15 23:50 Matt Price
  0 siblings, 0 replies; only message in thread
From: Matt Price @ 2019-01-15 23:50 UTC (permalink / raw)
  To: Org Mode

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

I think this is a bug but I don't know enough about svg images to be sure.
On export, links to svg images produce an <object> element rather than an
<img>.  Here's the docstring of the function (from ox-heml):

-----
Return \"object\" embedding svg file SOURCE with given ATTRIBUTES.
INFO is a plist used as a communication channel.

The special attribute \"fallback\" can be used to specify a
fallback image file to use if the object embedding is not
supported.  CSS class \"org-svg\" is assigned as the class of the
object unless a different class is specified with an attribute.
-------
Neither chrome nor firefox can display these objects.  On the other hand,
if I modify ~org-html--format-image to~ treat svg images just like other
images (in an <img> tag) then the image displays just fine.  Is there a
reason we use the object tag instead/ If not, what's the best solution? I
na try to work on a proper fix.

Thanks,
Matt

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-15 23:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-15 23:50 Bug? svg images do not display on modenr browser on export Matt Price

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.