It occurs to me that I could allow Goby to integrate note references in the same way Goby does, by allowing inline tags to be a form of external media reference (the same as having an object reference a file or URL). And you could create a representation of a document as an ordered set of these tag objects; this would be based on order of appearance in the doc, omitting all the positioning nonsense of the plain text characters.

This opens up the possibility for an md note editor similar to obsidian, except again with tags integrated with Goby and thereby with the potential to be given more complex properties and linking to other kinds of media.