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 node.md 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:

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