emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Zoe Piel" <zoepiel@zoepiel.com>
To: emacs-orgmode@gnu.org
Subject: Transclusion of SVG files in org-export?
Date: Fri, 04 Mar 2022 09:53:38 -0500	[thread overview]
Message-ID: <ec231ce5-960d-40ca-8cd1-f38eda8b4c0a@www.fastmail.com> (raw)

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

I use interactive SVG elements in my org notes and wish to have these elements embedded in the HTML export. There has been previous discussion about how SVG elements should be handled in ox-html. For my needs, neither <object> nor <img> is desirable, because while they show the graphical component of SVG, they break other SVG functionality like hyperlinks.

Until recently, a function I found on Stack Overflow (https://emacs.stackexchange.com/questions/29871/how-to-embed-svg-output-of-org-mode-src-block-as-inline-svg-in-html-export) was working well to transclude the full SVG source into the HTML when exporting (e.g. this page: http://magicscience.info/20210821080707-how_to_embed_handwritten_content_in_your_org_roam_site.html) 

However, when I went to rebuild the site recently, the resulting HTML no longer includes the SVG source inline. Instead, there is a line of text with an href to the file. 

Were changes made to org export recently that would have broken the SVG embedding function I was using?

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

             reply	other threads:[~2022-03-04 15:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-04 14:53 Zoe Piel [this message]
2022-10-29  5:43 ` Transclusion of SVG files in org-export? Ihor Radchenko

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ec231ce5-960d-40ca-8cd1-f38eda8b4c0a@www.fastmail.com \
    --to=zoepiel@zoepiel.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 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).