Giter Club home page Giter Club logo

advanced-mark.js's People

Contributors

angezid avatar claudels avatar danny0838 avatar greenkeeper[bot] avatar julmot avatar lukasdrgon avatar manoellobo avatar mottie avatar nickersoft avatar quangthe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

advanced-mark.js's Issues

Merging with main library

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!! 🎉

Support for virtual DOM

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?

The version 2.0.0 is published.

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.

Testing iframes related experimental branch

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:

  1. It waits for all context iframes and fires a single 'done' callback (the old isn't waits, as a result, fired multiple 'done' callbacks).
  2. It wraps matches in a single mark element (the old wraps the same matches in a multiple mark elements).
  3. It gives a significant performance boost when context is really big, no matter does it have iframes or not (the old is horribly slow, highlighting big context).
    Although for small context, due to waiting for all iframes, it can be slow.

If someone runs into problems with iframes and/or have time to test this branch, it would be nice to hear the results.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.