arnog / mathlive

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

Typing single pipe vs typing double pipe #2401

Open truebluepl opened 2 weeks ago

truebluepl commented 2 weeks ago

Actual Behavior

Typing single pipe generates Latex value: \left|\right| Which is visually and syntactically different from: || - this one can be generated when second pipe sign is typed.

Expected Behavior

Typing single pipe should generate Latex: ||

arnog commented 2 weeks ago

To clarify: the issue is that there is a \left...\right command?

Can you explain why not having the \left...\right command is preferable?

Also, you pressing option+| will produce a | without \left...\right

truebluepl commented 1 week ago

To clarify: the issue is that there is a \left...\right command?

Yes.

Can you explain why not having the \left...\right command is preferable?

There are two reasons: