Skip to content
Svartz v2.6.0

@svartz/plugin-annotations/browser

7 exported symbols.

Interfaces

i AttachOptions
i HostNoteOptionsA note in a host app's vault, which locates its annotations without spelling out the route or key.
i MountOptionsWhat the plugin's browser resource receives from the build.

Functions

f attachShow 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 mountBrowser 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 HIGHLIGHTHighlight names, for `::highlight(…)` in a host's own CSS.