Inlined SVGs are supported by a new HTML attribute introduced by
ox-hugo
: inlined.
Just add #+attr_html: :inlined t
above the SVG file link .
Here’s an example of inlining an SVG:
#+begin_src plantuml :file ../test/site/content-org/images/svg-with-hyperlinks.svg :exports results
skinparam svgLinkTarget _parent
start
:[[https://ox-hugo.scripter.co/ ox-hugo homepage]];
stop
#+end_src
#+caption: An SVG with a *hyperlink*
#+attr_html: :inlined t
#+RESULTS:
[[file:../test/site/content-org/images/svg-with-hyperlinks.svg]]
.. which results in: