It would be great to have a tool to backup all the data from Apple Notes to a collection of markdown files or SQLite db.
https://github.com/dunhamsteve/notesutils
It might need updating for features added in the last few years, but the cron job I have it running in is still working. (The html version dumps the drawings as svg, but png versions are available too.)