🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

mathml-to-clipboard

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mathml-to-clipboard

A copy event handler for a web application to transform MathML into AsciiMath and put into the clipboard.

1.0.2
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

A JavaScript to transform MathML into a AsciiMath during "copy" and "dragstart" events. See the example.html.

This allows the user to select part of rendered MathML on a page, then copy and paste the selection or use Drag and Drop. The selection is serialied to a plain text string as AsciiMath.

The script only handles MathML tags, so MathJax may not always be supported. It works with MathML polyfills like https://github.com/fred-wang/mathml.css/ .

Usage:

npm install Yaffle/mathml-to-clipboard
npm run-script build

Keywords

mathml

FAQs

Package last updated on 18 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts