Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yaffle/mathml-to-clipboard
A copy event handler to transform MathML into AsciiMath and put into the clipboard.
https://github.com/yaffle/mathml-to-clipboard
asciimath clipboard mathml
Last synced: about 1 month ago
JSON representation
A copy event handler to transform MathML into AsciiMath and put into the clipboard.
- Host: GitHub
- URL: https://github.com/yaffle/mathml-to-clipboard
- Owner: Yaffle
- License: mit
- Created: 2018-10-21T04:57:50.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-19T18:10:21.000Z (over 4 years ago)
- Last Synced: 2024-10-13T01:48:19.984Z (about 1 month ago)
- Topics: asciimath, clipboard, mathml
- Language: JavaScript
- Size: 11.7 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A JavaScript to transform MathML into a AsciiMath during "copy" and "dragstart" events.
See the [example.html](https://yaffle.github.io/mathml-to-clipboard/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:
```sh
npm install Yaffle/mathml-to-clipboard
npm run-script build
```