Attached is a patch which conditionally formats TOC links depending on whether they're images. I promoted the default link transcoder into its own defun to reduce duplication. I added some new unit tests and all existing tests pass.
Owned. Cheers, Derek On Sat, May 2, 2026 at 7:19 AM Derek Chen-Becker <[email protected]> wrote: > Thanks, let me take a look and see what I can do. > > Cheers, > > Derek > > On Sat, May 2, 2026 at 7:17 AM Ihor Radchenko <[email protected]> wrote: > >> Derek Chen-Becker <[email protected]> writes: >> >> > 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? >> >> org-export-inline-image-p is the general approach. >> But ox-html defines its own org-html-inline-image-p. >> >> >> -- >> 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 | > +---------------------------------------------------------------+ > > -- +---------------------------------------------------------------+ | 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 | +---------------------------------------------------------------+
0001-Generate-images-in-TOC-for-HTML-export.patch
Description: Binary data
