Allow [[Internal Links]] inside html tags

From here:

<a href="full-path-to-your-file.md" class="internal-link">Title</a>

I’m using Dataview to parse it for me into the correct format.

Given a string of [[Some file]], here’s the Dataview code to generate a working link:

page = dv.page(dv.parse(THE_STRING))

link = `<a href="${page.file.path}" class="internal-link">${page.file.name}</a>`
5 Likes