emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: "Rudolf Adamkovič" <rudolf@adamkovic.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Org exports broken ID links
Date: Sun, 08 Sep 2024 17:57:32 +0000	[thread overview]
Message-ID: <875xr6rptf.fsf@localhost> (raw)
In-Reply-To: <m2o754gwh6.fsf@adamkovic.org>

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	other threads:[~2024-09-08 17:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-30 10:07 Org exports broken ID links Rudolf Adamkovič
2024-08-31 15:14 ` Ihor Radchenko
2024-08-31 21:01   ` Rudolf Adamkovič
2024-09-01 13:15     ` Ihor Radchenko
2024-09-03 23:15       ` Rudolf Adamkovič
2024-09-08 17:57         ` Ihor Radchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875xr6rptf.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=rudolf@adamkovic.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).