diff --git a/README.md b/README.md index 9d98211..71fa26d 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ -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). +A JavaScript code to transform MathML into AsciiMath during "copy" and "dragstart" events. +See [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. +This allows the user to select a part of the rendered MathML on a page, then copy and paste the selection or use drag-and-drop. +The selection is serialized 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/ . +The script only handles MathML tags, so MathJax may not always be supported. It works with MathML polyfills, such as https://github.com/fred-wang/mathml.css/ . Usage: @@ -14,3 +14,8 @@ Usage: npm install Yaffle/mathml-to-clipboard npm run-script build ``` +Then add the script to your html page: +```html + +``` +It will set the "copy" and "dragstart" event handlers on the document. diff --git a/example.html b/example.html index ba0803e..8287062 100644 --- a/example.html +++ b/example.html @@ -9,7 +9,7 @@
- Try to select the next MathML block or it's part with text selection, then copy (Ctrl+C) and paste into a text editor: + Try selecting the next MathML block or a part of it with text selection, then copy (Ctrl+C) and paste into a text editor: