Create Note from Arbitrary Text
In some cases, like when previewing a non-note markdown file, we sometimes need to reference a file that's not a note. Since a lot of Dendron APIs need note objects, you can create a pseudo-note for these files.
Create one using DNode.createForFile (Private). This will create a fake note object and a fake vault object. Created objects are not added to the engine automatically, temporarily add and then remove them if needed.
You can check if a note is a pseudo-note using DNode.isFileId (Private) on a note's id.
Backlinks