Find link to notes in text


Is there a way to find in a text all the links toward other notes ?

Today I’m able to read the text of a note, but I’m not able to find those link other than by using a Regex (I would prefer to use the same function as Obsidian to get consistent results).

const noteFile =;
let text = await;