This is an automated email from the ASF dual-hosted git repository.

gerben pushed a commit to branch asf-site
in repository 
https://gitbox.apache.org/repos/asf/incubator-annotator-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 934f4ae  Reflect highlightRange→highlightText renaming
934f4ae is described below

commit 934f4ae28dc57d3efa593502030bcfd52e3bba6c
Author: Gerben <[email protected]>
AuthorDate: Fri Jun 25 11:23:12 2021 +0200

    Reflect highlightRange→highlightText renaming
---
 src/docs/getting-started.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/docs/getting-started.md b/src/docs/getting-started.md
index 891b16d..cf4ff6b 100644
--- a/src/docs/getting-started.md
+++ b/src/docs/getting-started.md
@@ -25,7 +25,7 @@ $ yarn add @apache-annotator/dom@dev
 And in your code import what you need:
 
 ``` js
-import { highlightRange } from '@apache-annotator/dom';
+import { highlightText } from '@apache-annotator/dom';
 ```
 
 
@@ -66,12 +66,12 @@ The *prefix* and *suffix* attributes are there to know 
which of multiple occurre
 Next, we define roughly the inverse function: given a TextQuoteSelector, we 
highlight the text it points to.
 
 ``` js
-import { createTextQuoteSelectorMatcher, highlightRange } from 
'@apache-annotator/dom';
+import { createTextQuoteSelectorMatcher, highlightText } from 
'@apache-annotator/dom';
 
 async function highlightSelectorTarget(textQuoteSelector) {
   const matches = 
createTextQuoteSelectorMatcher(textQuoteSelector)(document.body);
   for await (const match of matches) {
-    highlightRange(match);
+    highlightText(match);
   }
 }
 ```

Reply via email to