mathup icon indicating copy to clipboard operation
mathup copied to clipboard

Feature request: unary operators

Open t1u1 opened this issue 1 year ago • 0 comments

It would be nice if unary operators are detected.

For example, a - -b can be parsed and rendered as:

<mi>a</mi><mo>−</mo><mrow><mi>-b</mi></mrow>

instead of

<mi>a</mi><mo>−</mo><mrow><mo>−</mo><mi>b</mi></mrow>

Edit: If the above is difficult, then it could be detected in unfenced groups. For example: a - {: -b :}

t1u1 avatar Aug 10 '24 07:08 t1u1