Confirmed, on HEAD. This is a minimal example to reproduce (given an
existing test.svg file):

* file:test.svg Test

  This is a test

I exported using `org-html-export-to-html', which results in the following
HTML in the table of contents and later in the doc:

<ul>
<li><a href="#org245aa7e">1. file:test.svg Test</a></li>
</ul>
...
<h2 id="org245aa7e"><span class="section-number-2">1.</span> <img
src="test.svg" alt="test.svg" class="org-svg" /> Test</h2>

Derek

On Mon, Apr 20, 2026 at 12:41 PM Perry Smith <[email protected]> wrote:

> I have headings that look like this:
>
> * [[file:svg/icon_metering-af-start.svg]]: Metering and AF start
>
> When I format the org file as HTML, in the text, the SVG icon comes out
> fine but in the table of contents, it looks like this:
>
>     • 1. file:svg/icon_metering-af-start.svg: Metering and AF start
>
> and the whole line is a link that takes me to that section (which is
> good).  But is it possible to get the SVG icon instead of the file:path in
> the table of contents?
>
>
>
>

-- 
+---------------------------------------------------------------+
| Derek Chen-Becker                                             |
| GPG Key available at https://keybase.io/dchenbecker and       |
| https://pgp.mit.edu/pks/lookup?search=derek%40chen-becker.org |
| Fngrprnt: EB8A 6480 F0A3 C8EB C1E7  7F42 AFC5 AFEE 96E4 6ACC  |
+---------------------------------------------------------------+

Reply via email to