Paul Bryan <[email protected]> writes:

> Adding [PATCH] for the tracker.
>
>>> I am writing a document in org-mode which I am exporting to HTML. I
>>> am using radio-targets to write a glossary and the
>>> org-html-self-link-headlines option, so that I can easily link to
>>> individual chapters on the resulting web page. Unfortunately,
>>> self-links and radio-links clash, and headlines that contain a
>>> keyword from my radio-targets will use the radio-links instead of
>>> the self-links.

I looked closer into the patch, and things are not as simple as I
thought:

1. We cannot blindly reuse `org-html--format-toc-headline' as it can
   replace headings with ALT_TITLE
2. More importantly, we can't reuse `org-export-toc-entry-backend'
   because TOC backend removes two things - links, and *link targets*.
   If we have a headline like
   * This is <<<target>>>
   using `org-export-toc-entry-backend' will leave us with no target for
   target 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>

Reply via email to