Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aligned not rendering the first square bracket. #3279

Open
yuxi-liu-wired opened this issue Sep 2, 2024 · 1 comment
Open

aligned not rendering the first square bracket. #3279

yuxi-liu-wired opened this issue Sep 2, 2024 · 1 comment
Milestone

Comments

@yuxi-liu-wired
Copy link

yuxi-liu-wired commented Sep 2, 2024

Issue Summary

aligned not rendering the first square bracket.

Steps to Reproduce:

Try rendering this:

$$
\begin{aligned}
    [1] &= 1
\end{aligned}
$$

results in = 1

image

It can be bypassed by putting a curly bracket at the start.

$$
\begin{aligned}{}
    [1] &= 1
\end{aligned}
$$

This is different from the default behavior of LaTeX as rendered by pdfTeX, which renders the first square bracket without issue.

Technical details:

  • MathJax Version: 3.2.2
  • Client OS: Windows 11
  • Browser: Chrome Version 128.0.6613.86 (Official Build) (64-bit)

I am loading MathJax via

<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js"></script>
@dpvc
Copy link
Member

dpvc commented Sep 3, 2024

This is a duplicate of #2888 and #3216. It is fixed in v4 (currently out in beta release). The behavior in LaTeX changed in the fall of 2020 (after MathJax v3's implementation of aligned), and that new behavior is now reflected in v4.

@dpvc dpvc added the Duplicate label Sep 3, 2024
@dpvc dpvc added this to the v4.0 milestone Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants