Relative Content

Tag Archive for mark.js

How to use mark.js for all possible scenarios

I’ve tried to build my own highlight function but it fails on certain websites. I came across mark.js which seems promising. However, I think it’s not smart out the box hence it gives you a filter function option which is nice. Let’s look at this markup: