@svartz/plugin-annotations/browser
7 exported symbols.
Interfaces
| i AttachOptions | |
| i HostNoteOptions | A note in a host app's vault, which locates its annotations without spelling out the route or key. |
| i MountOptions | What the plugin's browser resource receives from the build. |
Functions
| f attach | Show the annotations stored for `page` beside `content`, the note's body element. Returns `detach`, which removes every marker, card, highlight and list it added. Comments whose passage is no longer in the note are listed after it. |
| f mount | Browser resource entry, which Svartz calls after every navigation: attach to the note body marked with `data-svartz-note="<slug>"`, keyed by that slug. On a host page that is the `SvartzNoteContent` body the mount is for, so each of several notes gets its own; on a theme page, the document's. A page without one gets nothing. |
Variables
| v ACTIVE_HIGHLIGHT | |
| v HIGHLIGHT | Highlight names, for `::highlight(…)` in a host's own CSS. |