arnog / mathlive

A web component for easy math input
https://cortexjs.io/mathlive
MIT License
1.59k stars 280 forks source link

Removing placeholders of power or log #2522

Closed truebluepl closed 1 month ago

truebluepl commented 2 months ago

Description

Removing part of power or log placeholders leaves other placeholder.

Steps to Reproduce

Type \placeholder{}^{\placeholder{}} or \placeholder{}_{\placeholder{}} then remove one of the placeholders.

Actual Behavior

Removing one of the placeholders leaves other one.

Expected Behavior

Both of placeholders should be removed OR only whole placeholder group should be able to remove.

arnog commented 2 months ago

I'm not sure how this would be implemented since there's nothing that indicates that the two placeholders are related. Also, I'm not sure why this would be a desirable behavior. Could you elaborate on why you think this would be better than the current behavior?

truebluepl commented 1 month ago

I'm sorry. I was using 0.98.6 version, which differently manages orphaned placeholders (than 0.101.0).