Skip to content

Katex renderer duplicates the expressions in description preview and during some copy/paste operations #2752

@Blind4Basics

Description

@Blind4Basics

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)

    image

  • 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

    • select the whole inline expression A0​(x0​,y0​) (3rd §) and paste in the trainer => triplets: A0(x0,y0) A_0 (x_0, y_0) A0​(x0​,y0​)
    • select a whole inline expression with text surrounding it (before or after or both) + paste => triplets
    • select a part of it only + paste => ok
    • select a part of the katex block just above or a complete line of it or the whole block + paste => ok

NOTE:

once the fork is published, the description looks fine (but cause the copy/paste troubles)

┆Issue is synchronized with this Clickup by Unito

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions