Copy to clipboard suggestion
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.9k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Right now when I use "Copy to clipboard" for MathML or Tex code, it also copy the formatting of the text in the box in addition to the text itself. So when I directly paste it in Word for example, it will not parse to Mathtype formula but instead it will paste it as formatted text (it even includes a left blockquote bar):
https://i.ibb.co/d5Jtdx3/1.png
Therefore to paste formula in Word I have to use "Paste special > Unformatted text" instead of the regular paste.
I think it will be much better if "Copy to clipboard" in MathJax will do it as Plain Text instead.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating MathJax's "Copy to clipboard" implementation for MathML and TeX, then reproduce the behavior by pasting into Word with regular paste. Confirm that the copied content is plain text without formatting or the left blockquote bar, and add or update coverage for both formats if the project has relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100