You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement ignorePunctuation option
This new option can be used in case you have special characters between words, e.g. setting this option to ["'"] would match "Worlds", "World's" and "Wo'rlds"
Fix method calls on same instance when using different options
Update the internal DOM iterator when calling multiple methods on the same instance with different options. The bug appeared with the iframe option in the plain JS version of mark.js
Related issue: #137
Implement .markRanges() method
Implements the long awaited feature to highlight ranges with start position and length. It can be used e.g. to highlight user selected texts or positions from third party libraries.
Fix order in which iframe text nodes are handled
iframes need to be handled at the correct position, between the surrounding text nodes.
This bug was probably introduced in v8.0.0
Implemented wildcard options
You can now use * and ?. If you have enabled the wildcards option you can double escape them to treat them as normal character, e.g. \\?.
Ignore special characters in accuracy complementary
If special characters follow a word, then they will no longer be included in the highlight. For example with a sentence "(lorem)" and accuracy complementary, the entire sentence including parenthesis was highlighted. Now only "lorem".
Fix case insensitive diacritics mapping
There was a bug in the mapping of upper case characters and diacritics. For example a character "L" in the keyword didn't match "Ł" nor "ł". Only the lower case "l" matched them. This is now fixed.
Implemented iframesTimeout option
In case the load event of an iframe isn't called – e.g. if there's no network connection or the user browses inside the "offline mode" and an iframe has an online "src" – mark.js wasn't able to complete the process for the rest of the site. The now implemented option `iframesTimeout` specifies the maximum ms to wait for a load event. If it's not fired in this time, the iframe will be silently skipped.