We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://docs.obsidian.md/Reference/TypeScript+API/FileManager/processFrontMatter
Note
I am not a JS/TS developer so my terminology is likely wrong
Steps to reproduce:
await this.app.fileManager.processFrontMatter( sharedFile.file, (frontmatter) => { // Remove the shared link delete frontmatter["link"]; }
taken from project
if link is the only field in the frontmatter object then this will not do anything. If there are other fields then the link field is correctly deleted
link
The provided code would delete the link field from the frontmatter regardless of is it leaves the frontmatter empty
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://docs.obsidian.md/Reference/TypeScript+API/FileManager/processFrontMatter
Note
I am not a JS/TS developer so my terminology is likely wrong
Steps to reproduce:
if
link
is the only field in the frontmatter object then this will not do anything. If there are other fields then thelink
field is correctly deletedExpected Behaviour
The provided code would delete the
link
field from the frontmatter regardless of is it leaves the frontmatter emptyThe text was updated successfully, but these errors were encountered: