-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Katex renderer duplicates the expressions in description preview and during some copy/paste operations #2752
Comments
The first one is caused by I think the second one has something to do with KaTeX outputting HTML and MathML (for accessibility). Selecting a paragraph copies both text? Not sure about this one. |
from the same kata/description, copying in the trainer: // copying the full line (which is a §):
The starting point A0(x0,y0) A_0 (x_0, y_0) A0(x0,y0) is known as well as the slope to the curve at A0 A_0 A0 and then the tangent line at A0 A_0 A0 .
// copying a full § with extra text before and after:
−2x.
For each xk x_k xk we are able to calculate the yk y_k yk as well as the values zk z_k zk of the exact solution.
Our task It looks like the |
It shouldn't have anything to do with the original input text because only the text inside Look at the HTML it generated. It should have |
Probably KaTeX/KaTeX#645 |
The first one should be fixed. |
Using the Not sure what can be done. |
as long as the vizual is ok, I guess it can stay like this... |
Describe the bugs
Not sure if it's old or new, but the renderer is litterally acting, here:
when previewing a description (I'm forking a kata, in the capture below) all katex expressions are tripled. This occurs with any kind of katex expressions (inline and blocks)
I got similar problems when solving a kata. I did a copy/paste from a description to the editor in a trainer: the description looks fine, but once the selected text has been pasted, I got triplets of it in the trainer in some situations. It looks like it happens only when copying inline katex expressions.
Example here (warning: trainer link!) https://www.codewars.com/kata/56347fcfd086de8f11000014/train/typescript
A0(x0,y0)
(3rd §) and paste in the trainer => triplets:A0(x0,y0) A_0 (x_0, y_0) A0(x0,y0)
NOTE:
once the fork is published, the description looks fine (but cause the copy/paste troubles)
┆Issue is synchronized with this Clickup by Unito
The text was updated successfully, but these errors were encountered: