ankitects / ankitects/anki

Can't copy-paste mathjax from browser to "add note"

Open
#2,944 2 comments 0 reactions 0 assignees View on GitHub
editor
Dominant language
Rust
Stars
30.5k
Forks
3.2k
Avg merge
2d 8h
Merged PRs (30d)
72

Description

Running on 862dfd639de44adb453146206b4ed04a3a5f173d

For some reason, when I copy from browser and paste in "add card", the result is
`A function  Mathjax  such that  Mathjax .` while the source is `A function \star:C\times C\to C such that a\star b=b\star a.`

Note however it works when I copy from the html source

Contributor guide

Open the contributing guide

Research direction

Reproduce the problem by copying the MathJax content from a browser into Anki's "add card" or "add note" editor, and compare it with copying from the HTML source. Trace how the pasted HTML containing is transformed; done means browser copy-paste preserves the MathJax expressions instead of producing empty MathJax images.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
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.