chhoumann / MetaEdit

MetaEdit for Obsidian
https://bagerbach.com
GNU General Public License v3.0
410 stars 17 forks source link

Support new and old frontmatter api #100

Open xt0rted opened 1 year ago

xt0rted commented 1 year ago

The current implementation works fine in the desktop app, but the mobile app still uses the old api. I patched my local copy and this seems to work on both now.

Fixes #99

xt0rted commented 1 year ago

After some more testing this doesn't look like a full fix. I need to debug it some more to see what else needs to be adjusted.

xt0rted commented 1 year ago

What was happening is on desktop unset values were remaining unset, but on mobile they were coming through as a literal string of null, and a new position property was being added in. The second commit ensures the old code path is taken on mobile while desktop uses the new code path. The results look to be the same in both applications.