Skip to content

Commit

Permalink
Merge pull request #26 from apriljunge/fix-wrong-text-highlighting
Browse files Browse the repository at this point in the history
Behebt Fehler der Textunterstreichung
  • Loading branch information
LennyPenny authored Jan 6, 2022
2 parents 4100091 + eeff243 commit a4c5c7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vegarando.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ function highlight(elem, good, text) {
findAndReplaceDOMText(elem, {
find: reg,
wrap: "span",
wrapClass: `highlight-${good ? "good" : "bad"}`
wrapClass: `highlight-${good ? "good" : "bad"}`,
forceContext: true
})
}

Expand Down

0 comments on commit a4c5c7b

Please sign in to comment.