Mathjax (LaTeX) rendering error with brackets (`{}`) and "align"

Steps to reproduce

  1. Create a LaTeX Math script (in-line/block) containing (a) a function with brackets, and (b) an align function as such:

Blank Brackets:

$$
{
\begin{align}
Test
\end{align}
}
$$

(e.g., \large{} function)

$$
\large{
\begin{align}
Test
\end{align}
}
$$

Did you read and follow the Troubleshooting Guide ? [Yes/No]

Yes

Expected result

No error.

Actual result

An error (mathjax text is highlighting as yellow/red & is not rendering…)

Environment

SYSTEM INFO:
Obsidian version: 1.14.4
Installer version: 1.14.4
Operating system: Windows 11 Home 10.0.26200
Login status: logged in
Language: en
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Change them from align to aligned.

align – standalone, for multiple equations
aligned – inside other environments, for parts within an equation

MathJax 3 had let users get away with nesting display environments. MathJax 4 is strict.