@dokieli/web-annotation - v1.0.1
    Preparing search index...

    Interface MarkOptions

    Options for rendering highlight mark(s). The library emits the fragment RDFa itself: each wrapping <span> is a dcterms:hasPart / dcmitype:Text resource whose <mark> holds its rdf:value.

    interface MarkOptions {
        annotationUrl: string;
        className?: string;
        id?: string;
        markAttrs?: Record<string, string>;
        reference?: string;
        wrapperAttrs?: Record<string, string>;
    }
    Index
    annotationUrl: string

    target of the default reference link

    className?: string

    class(es) on each wrapping <span>

    id?: string

    <mark> @id and <span> @resource="#{id}"; defaults to a random id

    markAttrs?: Record<string, string>

    extra attributes on the <mark> (caller-owned)

    reference?: string

    reference marker appended after the final mark; defaults to a link to annotationUrl

    wrapperAttrs?: Record<string, string>

    extra attributes on the <span> (caller-owned)