emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Org exports broken ID links


From: Ihor Radchenko
Subject: Re: Org exports broken ID links
Date: Sun, 08 Sep 2024 17:57:32 +0000

Rudolf Adamkovič <rudolf@adamkovic.org> writes:

>>> `ox-texinfo' exports the link as
>>> 
>>>     @uref{file://test.org,Foo}
>>
>> the link points to the test.org file. It is not broken - the relevant
>> heading is present in the .org file even though it is absent in the
>> exported .texi file.
>
> Oh, I see now.  OMG, I would have never guessed that!
>
> [It definitely is not intuitive.]

Depends.
Consider, for example, subtree export with subtree containing links to
the rest of the Org file. Then, it makes more sense, I think.

> Either way, thank you for re-explaining. :)

I actually spoke too soon.

     * Foo :noexport:
     :PROPERTIES:
     :ID: xxx
     :END:

     * Bar
     [[id:xxx][Foo]]

does produce invalid link in the html export.

More specifically, it first produces .org link, but then
`org-html-link-org-files-as-html' comes into play, and HTML exporter
assumes that the whole original .org file has been exported, converting
the link back into internal html link.

So...
Confirmed.

However, the fix would be more or less easy just for links to the
current .org file. It is not clear what to do with links to external org
files - we have no information whether the link target (or even the
linked org file) is exported or not.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
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

[Prev in Thread] Current Thread [Next in Thread]