Skip to content

Double carets when using \class #2923

@kugry-repo

Description

@kugry-repo

Let’s say I have the LaTeX expression: 1+\class{highlight}{2}+3

And I put the caret after the 2, it gets rendered as this:
Image

Now, if I move the caret by pressing the left arrow key, it gets rendered as this:
Image
In this caret position, I can't backspace, and the error sound is played.

so i need to press the left arrow key one more time to get to this:
Image

while at the right of the 2, there isn't a double caret, but I have to press the right arrow key twice to move the caret.

Also, the wrapped area of the CSS isn't balanced, because the spacer is being included.
Image

Here is a Codepen illustrating the bug.
https://codepen.io/fytdapru-the-bold/pen/XJdarKN

I already opened an issue like this before, and because English isn't my primary language, I said the cursor instead of saying the caret, hence the mix-up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions