Sorry, it was [[attachment:example.pdf::2]].
The lint for [[file:example.pdf::2]] is fine, since
org-element-context returns the raw path without the search option.
However, this is not the case for [[attachment:example.pdf::2]].

On Sun, Jan 19, 2025 at 5:57 PM Ihor Radchenko <yanta...@posteo.net> wrote:
>
> Lei Zhe <lzhe...@gmail.com> writes:
>
> > For the link [[file:example.pdf::2]], org-lint identifies it as an invalid 
> > link.
> > This patch aims to address the issue.
>
> I am unable to reproduce this problem. M-x org-lint does not show any
> warning after I change the link to point to an existing file.
>
> I tested on the latest main.
>
> --
> Ihor Radchenko // yantar92,
> Org mode maintainer,
> 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 via email to