Automatic bracing cannot be used with vertical bars in `physics` extension
Issue Summary
The auto-bracing command \qty
does not work with vertical bars (though \vqty
works)
Admittedly \qty|a+b|
is a somewhat odd thing to try to use and might be sufficiently rare that it doesn't warrant fixing in MathJax, but it does catch me off guard every now and then and does deviate from the reference implementation of physics
.
The documentation for the LaTeX physics
package can be found on CTAN
Note that the physics
package needs to be loaded. I couldn't find a demo page that has this loaded by default, unfortunately.
Steps to Reproduce:
This does not render
$$
\qty|a+b|
$$
This renders fine
$$
\vqty{a+b}
$$
Technical details:
- MathJax Version: 3.2.2
- Client OS: Windows
- Browser: Electron Application (Chromium)