I need to write a blog post explaining this in more detail.
But basically Notes are shared with public account, then they synced automatically to the apple mini machines in the cloud. Using Apple Script they are exported and saved into DB and then render and published.