Linking to internal content in non-markdown content

Sometimes in markdown files you want to insert custom html (or even in shortcodes).
Is there a way to link to internal content this way ?

e.g.

<a href="@/page.md">Page</a>

Linking to internal content (including files) is central to avoid broken links when moving stuff. I’ve been missing this after “hard”-linking colocated assets and setting the path of the page in the front-matter or simply in case of typo. Why not doing the same for assets? i.e ![img](@/non_collocated/asset.jpg)

No, HTML content is ignored when rendering markdown and to do that we would need to parse HTML which is not trivial… That’s unlikely to happen as it would crash performance

2 Likes