|
From: | Max Nikulin |
Subject: | Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3mpjk70si-emacs-org-9.6.7/share/emacs/site-lisp/org-9.6.7/)]) |
Date: | Wed, 6 Sep 2023 21:27:25 +0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 |
On 05/09/2023 18:02, Ihor Radchenko wrote:
What I had in mind is a bit elaborate: 1. We get actual link type 2. If link type is not registered, we try "fuzzy" 3. If "fuzzy" target is not found, instead of broken link, we export a link with unknown type.
It makes sense as an additional variant for `org-export-with-broken-links'. Currently no option allows to export description of broken links and sometimes it is inconvenient.
Max Nikulin writes:I am unsure if any "PREFIX:" should be recognized as a link type, but there is another possibility on this way: allow users to mark some prefixes as search links, not link types.May you elaborate?
I am considering another behavior. If any PREFIX: is recognized then the link exported literally as PREFIX:PATH unless the PREFIX is registered as
(org-link-register-search-link-prefix "sec")So if the document does not contain PREFIX:NAME target then it is an export error (or another prescription controlled by `org-export-with-broken-links') and it may be reported so by `org-lint'.
Different users expect different degree of strictness during link export. I am unsure which variant is better.
[Prev in Thread] | Current Thread | [Next in Thread] |