datacore icon indicating copy to clipboard operation
datacore copied to clipboard

[Question] How can I get the markdown page from the link

Open abruneau opened this issue 6 months ago • 1 comments

Hello,

In many of my files I reference other files in inline fields. For example:


parrent:: [[The Parent]]

I'd like to retrieve the MarkdownPage object from the parent inline field

let parent = dc.parseLink(current.value("parent"))

But what I get is a Link instead of a MarkdownPage How can I do that?

Thank you

abruneau avatar Jun 11 '25 15:06 abruneau

To load a page object, you can use dc.api.page(), with the link for input. This should return a MarkdownPage

techy-robot avatar Jun 30 '25 15:06 techy-robot