I'm thinking of a Markdown export, which would basically be the same as text, but with the URL link added in markdown format, i.e.
With a single example (from Alice in Wonderland), this is the output:
Code:
"Who are you you?" said the Caterpillar.
[2020-12-23 6:35 PM](calibre://view-book/_hex_-43616c696272655f4c6962726172795f4d696e69/1573/EPUB?open_at=epubcfi(/4/2/4/282/1:0))
In a Markdown viewer/editor (e.g. iA Writer, Bear, Typora), this looks quite tidy, with the quote followed by the timestamp, which is a link to open the book at the desired spot. I've attached a small screenshot clipping to illustrate.
I reviewed the JSON ("calibre highlights") and it does indeed seem to have all the necessary info, although I'm not sure about the hex reference for the book I see in the location URL. I would guess that's somehow equivalent to the uuid value?
I guess if all else fails, I can try to teach myself how to parse the JSON into a Markdown. But if this were a quick fix to add as a Markdown export option, I can guarantee it would be popular with the Markdown/book annotator communities. I'm already a patron, but I would gladly send an additional thank-you contribution via Paypal, as it would make my year. I've been looking for this for years and got all excited when I saw the URL functionality in this release.
Thank you for the swift reply and the patience with my ignorance. Much appreciated!