JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5930
  • Score
    100M100P100Q134633F
  • License MIT

Highlight words, terms, or text on a browser page using JavaScript. It has support for virtual DOMs like JSDOM.

Package Exports

  • advanced-mark.js
  • advanced-mark.js/dist/mark.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (advanced-mark.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

advanced-mark.js

npm

Highlight words, terms, or text on a browser page using JavaScript.

To play with this library - advanced-mark.js-playground. It requires minimum installation and provides full functionality. It has some built-in examples.

This library from v2.0.0 doesn't guaranty backward compatibility with mark.js v9.0.0 and npm package v8.11.1.

See Documentation for advanced-mark.js v2. Note that it's still under development.

Also may be useful to read Documentation. Note that this doc is for old mark.js.

Modules changes

  • *. es6.*.js now are real ES6 modules. They are actually UMD modules in mark.js v9.0.0 and npm package v8.11.1.
import Mark from './mark.es6.js';
// import Mark from './jquery.mark.es6.js';

UMD modules are removed in v2.0.0.

Virtual DOMs

See JSDOM test.