Thanks for the explanation. Would a better approach be to make the lambda
selective on what the link actually contains (e.g. image vs something
else)? Or do you have another idea? Is there even an existing predicate
that could be used to determine link target type?

Thanks,

Derek

On Sat, May 2, 2026 at 6:45 AM Ihor Radchenko <[email protected]> wrote:

> Perry Smith <[email protected]> writes:
>
> >> For example, consider
> >>
> >> #+options: toc:t
> >>
> >> * [[https://orgmode.org][org]] Test
> >> * [[file:~/Git/worg/images/icons/info.png]] Test 2
> >> * Test 3
> >>   This is a test
> >>
> >> The first TOC item will be messed up.
> >>
> > In HTML, links can contain images which is what the SVG should be
> changed to.  I didn’t know when I first reported it that this was how
> things were supposed to work.  I am new here and assumed it was just that I
> had done something incorrectly.
>
> Yes, of course.
> What you reported is a genuine bug.
> We need to handle inline images specially during export.
> I only commented about the specific approach Derek used because it leads
> to problems when exporting ordinary non-image links.
>
> --
> Ihor Radchenko // yantar92,
> Org mode maintainer,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>


-- 
+---------------------------------------------------------------+
| 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