From: Matt Price <moptop99@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Bug? svg images do not display on modenr browser on export
Date: Tue, 15 Jan 2019 18:50:45 -0500 [thread overview]
Message-ID: <CAN_Dec94jR-hoZqPC0ruKKKh3+wjeETw7ojUDR8FffasPQxvNg@mail.gmail.com> (raw)
[-- 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 --]
reply other threads:[~2019-01-15 23:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAN_Dec94jR-hoZqPC0ruKKKh3+wjeETw7ojUDR8FffasPQxvNg@mail.gmail.com \
--to=moptop99@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.