datacore
datacore copied to clipboard
[Question] How can I get the markdown page from the link
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
To load a page object, you can use dc.api.page(), with the link for input. This should return a MarkdownPage