emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Transclusion of SVG files in org-export?


From: Zoe Piel
Subject: Transclusion of SVG files in org-export?
Date: Fri, 04 Mar 2022 09:53:38 -0500
User-agent: Cyrus-JMAP/3.5.0-alpha0-4778-g14fba9972e-fm-20220217.001-g14fba997

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?

reply via email to

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