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.

3 Likes

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

1 Like