How to build internal link from link-formatted text in code blocks using Obsidian API?

I type [[my node]] in code block, and the my exist in my vault. How I parse the text ‘[[my node]]’ into a link object using obsidian api?

Are you developing a plugin for this?

If not, code blocks do not render links or other Obsidian syntaxes deliberately.

See Link or block link in code block for the relevant feature request.

I want to add a feature to my plugin but encounter this link problem. It’s great If obsidian exposes the link-parsing api.

Aha, then you should add your request as an issue on the GitHub page for the API:

1 Like

I do take a look at it just now and I found an issue is talking about the link parsing.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.