arnog / mathlive

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

Typing single pipe vs typing double pipe #2401

Open truebluepl opened 4 months ago

truebluepl commented 4 months 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 4 months 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 4 months 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: