obsidian-annotator
obsidian-annotator copied to clipboard
Highlight before JSON
Would it be worthwhile to modify the annotationString
and related regex so that the text of the highlight and possible pre/postfix are included before the annotation-json
? Like
>*%%HIGHLIGHT%%Innovation and growth: A response to the opportunity to build and exploit new physical or knowledge-based capabilities.
>%%LINK%%[[#^5y6rc46lc58|show annotation]]
>%%COMMENT%%
>
>%%TAGS%%
>
>%%
>```annotation-json
>{"created":"2022-01-13T12:07:35.018Z","updated":"2022-01-13T12:07:35.018Z","uri":"vault:/attachments/x.pdf","document":{"title":"X","link":[{"href":"urn:x-pdf:62653063613737333565633462633636643638633736383364656232366561663139316132396637356639393435653735333333393037316339346330613933"},{"href":"vault:/attachments/X.pdf"}],"documentFingerprint":"62653063613737333565633462633636643638633736383364656232366561663139316132396637356639393435653735333333393037316339346330613933"},"target":[{"source":"vault:/attachments/X.pdf","selector":[{"type":"TextPositionSelector","start":31934,"end":32478},{"type":"TextQuoteSelector","exact":"Innovation and growth A response to the opportunity to build andexploit new physical or knowledge-based capabilities.","prefix":"e reason. Common reasonsinclude:","suffix":"Figure 1.1 provides a visual rep"}]}]}
>```
>%%
^5y6rc46lc58
This would make it easier to identify highlights when embedding blocks.
I agree that this seems to be a better way to organize it.