Hello,
Michael Behr <mkbehr@gmail.com> writes:
> I want to export a subtree of a file, but that subtree has links to
> headings in the file that are outside of the subtree. I expect the
> exporting process to produce some sort of valid result, but instead it
> throws an "Unable to resolve link" error. Here's a test file to
> reproduce:
>
> * Foo
> * Bar :export:
> [[*Foo][Foo]]
>
> Making a file with those contents and trying to export it to e.g.
> latex will fail, but if the :export: tag is removed, exporting
> succeeds. I can't easily get a backtrace because the error comes from
> user-error, but it happens in org-export-resolve-fuzzy-link.
>
> Of course the exported file can't link to a target that doesn't exist,
> but it's probably better to strip out the link in this case than to
> throw an error, right?
Actually, wrong. It was discussed already, and the current trend is to
throw an error instead of silently dropping the link.
Can't you just filter it out before exporting?
Regards,
--
Nicolas Goaziou