公式不换行!

$$
f(x)=
\left{
\begin{aligned}
&ax\hspace{5mm} && 000000000000001<x<1\
&bx^2+32 && -1<x<0
\end{aligned}
\right.
\
f(x)=
\left{
\begin{aligned}
&ax\hspace{5mm} & 000000000000001<x<1\
&bx^2+32 & -1<x<0
\end{aligned}
\right.
$$

同样的代码在Typora中是会换行的

这公式似乎会报错?我的版本是v1.11.1

$$
\begin{aligned}
f(x)=  
\left\{  
\begin{aligned}  
&ax\hspace{5mm} && 000000000000001<x<1\\  
&bx^2+32 && -1<x<0  
\end{aligned}  
\right.  
\\  
f(x)=  
\left\{  
\begin{aligned}  
&ax\hspace{5mm} & 000000000000001<x<1\\  
&bx^2+32 & -1<x<0  
\end{aligned}  
\right.  
\end{aligned}
$$