emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Internal link broken when publishing (was org-id with ox-html)


From: Maxim Nikulin
Subject: Re: Internal link broken when publishing (was org-id with ox-html)
Date: Tue, 24 Aug 2021 22:23:24 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 23/08/2021 03:42, inkbottle wrote:
Links between two different files, like
`[[id:e54113f9-2ad7-4a86-94be-68ffc696de0b][hello]]`, get broken when
publishing. (whatever the settings).

I haven't found any workaround.

Being able to move around entries, functionality provided by `org-id-link-to-
org-use-id`, is pivotal, IMO.

From my point of view it looks like a bug.
https://code.orgmode.org/bzg/org-mode/src/master/lisp/ox.el#L4381
checks for ID property.
https://code.orgmode.org/bzg/org-mode/src/master/lisp/ox-html.el#L1659
queries CUSTOM_ID only. I suppose, ID should be here as well. A subtle point is which one (ID or CUSTOM_ID) should be used if both are defined for some headers.

Maybe it is possible to create workaround as a custom config without touching of Org code. I guess, "nicer" ids may be replaced by values of ID property. Examples (I tried none of them): - https://tecosaur.github.io/emacs-config/config.html#nicer-generated-heading https://orgmode.org/list/E1jxAjq-0004Dk-LH@lists.gnu.org/ (TEC. [Interest] Determanistic Org IDs. Sun, 19 Jul 2020 22:27:31 +0800) - https://github.com/alphapapa/unpackaged.el#export-to-html-with-useful-anchors https://orgmode.org/list/CA+G3_POCYTKR6M1K8XUPzUsg5EHd5Tv4FE4X-6MvadCSjSkHiA@mail.gmail.com/ (Tom Gillespie. Tue, 8 Dec 2020 20:39:08 -0500, Re: stability of toc links) - https://github.com/zzamboni/dot-doom/blob/master/doom.org#capturing-and-creating-internal-org-links https://orgmode.org/list/CAGY83EcFExvco6TuTOQiywgdDO0cXE+db828LeiDdimxBroVsg@mail.gmail.com/
(Diego Zamboni. Wed, 9 Dec 2020 09:45:52 +0100. Re: stability of toc links)
- http://ivanmalison.github.io/dotfiles/#usemyowndefaultnamingschemefororgheadings https://orgmode.org/list/4698cfeb2e415f88bd25e71267f29168@isnotmyreal.name/ (TRS-80. Sat, 12 Dec 2020 20:25:15 -0500. Re: Better heading links in org-mode exports)
- https://writequit.org/articles/emacs-org-mode-generate-ids.html





reply via email to

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