mathjax / mathjax/MathJax

Copy to clipboard suggestion

Open
#2,324 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request v3
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.