mathlive icon indicating copy to clipboard operation
mathlive copied to clipboard

The output of auto generated closing bracket is '?'

Open moh1434 opened this issue 4 years ago • 4 comments

Description

The output of auto generated closing bracket is '?'

Steps to Reproduce

1- Open mathlive.io 2- Write: (x, you will see (x) 3- Click Ctrl+A then Ctrl+C (to copy the output)

Actual Behavior

The output is $$(x?$$ instead of $$(x)$$ ,so there is '?' instead of ')' same behavior with [x,{x

Expected Behavior

I expected to get ')' instead of '?'

Environment

Operating System Linux mint 20

Browser Chrome and Firefox

moh1434 avatar Feb 26 '21 20:02 moh1434

Right now, that's the intended behavior. Since the closing fence has only been suggested (you can see it's displayed with a lower opacity) and not validated by the user, the Latex representation reflect that.

I can see that what you're expecting is reasonable as well, though... Wondering if anyone else has some thoughts about this?

arnog avatar Feb 26 '21 20:02 arnog

Thank you for your response. I think the output of the suggested bracket should be either empty '' or the right symbol ')'. The '?' symbol is weird and made me think there is something wrong.

moh1434 avatar Mar 02 '21 14:03 moh1434

I noticed this as well. I really liked the way mathquill works with this to be honest. It's impossible to get unbalanced parentheses. It always adds one in another location as soon as you try to remove one.

OrkhanAlikhanov avatar Mar 07 '21 01:03 OrkhanAlikhanov

I also get Confused by this behavior, I thought the right parentheses was generated automatically, which is the expected behavior for every programmer.

faxinwang avatar Jun 19 '21 10:06 faxinwang

Fixed now.

arnog avatar Mar 01 '23 06:03 arnog