Closed evanaze closed 6 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
quickadd | ✅ Ready (Inspect) | Visit Preview | Feb 14, 2024 8:04pm |
@chhoumann please review.
fixes #595
:tada: This PR is included in version 1.7.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Description
This is a solution for issue #545 . As of Obsidian 1.4.0, the frontmatter position got moved from
frontmatter.position
tofrontmatterPosition
. See here: https://github.com/obsidianmd/obsidian-api/issues/122As a result, the
getFrontmatterEndPosition
method in captureChoiceFormatter always returns-1
, resulting in the note being added to the top of the file. This PR resolves that change in a backward compatible way by checking for bothfrontmatter.position
andfrontmatterPosition
.Testing
Unfortunately, I don't know how to test my changes. Any tips here would be appreciated.