Every change to a note is exported as markdown and synced as a new version to my git-based cloud storage.
Demo: https://sublimated.com/docs/guides/apple-notes/apple-notes-s...
In the last few years I've built several tools to work with Apple Notes: montaigne.io (apple notes to website) and various exporters (alto.index and notes exporter app), but sublimated.com is the fastest and most magical — all changes are versioned, and notes get collaboration features like sharing and commenting.
The web app is at sublimated.com. The macOS app handles the sync: https://apps.apple.com/us/app/sublimated/id6757111538?mt=12