angezid / advanced-mark.js Goto Github PK
View Code? Open in Web Editor NEWHighlight words, terms, or text on a browser page using JavaScript.
License: MIT License
Highlight words, terms, or text on a browser page using JavaScript.
License: MIT License
Hey @angezid!
I recently adopted using mark.js (more specifically, this fork of the library), and love the changes you've introduced, especially around performance. I saw you have a standing invitation from Julian to become an official maintainer on the original repo.
Would love to see these changes get merged into the upstream, so that way it can be versioned normally (right now I just have this GitHub repo's "master" branch added to my package.json). Just my two cents :)
Keep up the good work!! 🎉
Has anyone else experienced this?
Hey @angezid,
Excited to see the progress this library has made over the past few months! Curious what your thoughts are about this stale issue from the original repo regarding adding support for virtual DOMs like JSDOM.
For performance reasons, I'm looking at moving my MarkJS code to the BE, but currently can't because it still utilizes the global document
object. I think maybe document
could be an additional constructor prop that defaults to the global document
?
What do you think?
I noticed that while this library does ship with types, the types
field in package.json
doesn't point to any of them. As a result, my project can't find any type definitions and I still have to alias the package back to use mark.js
and use the @types/mark.js
package.
The version 1 will still be supported in terms of bugs fixing - it has maximum backward compatibility with mark.js
library.
Also I generated and put on GitHub Pages documentation for both versions (what it has so far).
That's all news.
A domiterator
waitForIframes()
method is buggy; if the context contains multiple iframes, it isn't waits for all iframes as it claims.
Also, the domiterator
code, which handle iframes, is very slow.
This branch is an attempt to fix it.
This branch:
If someone runs into problems with iframes and/or have time to test this branch, it would be nice to hear the results.
Hi @angezid, last year on mark.js
repo https://github.com/julmot/mark.js/issues/458 you made a demo concerning highlighting texts under Shadow DOM.
Could you consider adding Shadow DOM support into your advanced-mark.js
library?
Sample page that uses Shadow DOM: https://www.virustotal.com/
Thanks!
Hello,
Could you please add these two letters support:
őŐ
űŰ
advanced-mark.js/src/lib/regexpcreator.js
Line 342 in 54a5a87
Thank you! :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.