API: Method to add link and have it parsed into `metadataCache`

When adding an internal link via a plugin, this does not appear in the plugin metadataCache and thus doesn’t appear in the backlinks or the graph view. I am currently creating markdown links using render.Markdown(plugin.app, "[[link]]", linkContainer, sourcePath, plugin). However as mentioned this doesn’t show up in backlinks etc. It would be great if there was an API method to add a link to the metadata cache. i.e. something like parseInternalLink("[[link]]",sourcePath).

Thanks for your consideration.

4 Likes

This is also related to this feature request. We surely need some means to modify how metadata is indexed.

1 Like

jumping on this because I would really like to have this for my plugin, which lets users freely write [[links]] in ways that are manually rendered with MarkdownRenderer.render().