We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
quote
Text Quote Selector
1 parent 8ccace6 commit f5ed322Copy full SHA for f5ed322
packages/text-annotator/src/model/TextAnnotation.ts
@@ -14,7 +14,15 @@ export interface TextAnnotationTarget extends AnnotationTarget {
14
15
export interface TextSelector {
16
17
- quote: string;
+ /**
18
+ * Matches the `Text Quote Selector` spec from the W3C Annotation Data Model
19
+ * @see https://www.w3.org/TR/annotation-model/#text-quote-selector
20
+ */
21
+ quote: {
22
+ exact: string;
23
+ prefix: string;
24
+ suffix: string;
25
+ }
26
27
start: number;
28
@@ -24,4 +32,4 @@ export interface TextSelector {
32
33
offsetReference?: HTMLElement
34
-}
35
+}
0 commit comments