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.