If you want to access your Apple Notes raw data on the Mac you can find them in "~/Library/Group Containers/group.com.apple.notes" folder.
In your calendar just type
cd ~/Library/Group\ Containers/group.com.apple.notes
Or go to "Finder" and click "Go->Go to Folder" menu(or SHIFT+COMMAND+G) and type
~/Library/Group Containers/group.com.apple.notes
Once you are in this folder you can see
- NoteStore.sqlite - which is SQLite database file with all the data
- Accounts folder that holds all the media attachments
If you know how to use command line you can use this library to extract Apple Notes and convert them to HTML or JSON archive.
The beauty of Apple Notes is that with enough technical knowledge you can get access to the raw data from Apple Notes locally on yo