Latex Line Highlighting broken
pr welcome
<!-- ⚠️ Please DON'T ignore the issue template -->
<!-- 💡 Consider upgrading to the latest version before sending the issue -->
**Describe the bug**
The line-highlighting for latex is broken when using matrices and or linebreaks in subscripts of sums.
**Minimal reproduction**
Create a Slide with the following content
# Title
$$ {1,2,3|1,4,5}
\begin{align*}
S_{ij} &= \sum_k a_{ik} b_{kj}\\
% partitioned sum...
&= \sum_{\substack{k\\k \% 4 = 0}} \sum_{k'=k}^{k+3} a_{ik'} b_{k'j} \\
% ...can be interpreted as inner product
&\quad\qquad\equiv \sum_{\substack{k\\k \% 4 = 0}}
\begin{pmatrix}
\cdot & \cdot & \cdot & \cdot
\end{pmatrix}
\cdot
\begin{pmatrix}
\cdot \\ \cdot \\ \cdot \\ \cdot
\end{pmatrix} \in \mathbb R\\
&= \sum_{\substack{k\\k \% 4 = 0}} \sum_{k'=k}^{k+3} b_{k'j} a_{ik'} \\
&\quad\qquad\equiv \sum_{\substack{k\\k \% 4 = 0}}
\begin{pmatrix}
\cdot \\ \cdot \\ \cdot \\ \cdot
\end{pmatrix}
\cdot
\begin{pmatrix}
\cdot & \cdot & \cdot & \cdot
\end{pmatrix} \in \mathbb R^{4\times 4}
\end{align*}
$$
**Environment**
- Slidev version: 52.14.2
- Browser: Google Chrome
- OS: Windows 10
```sh
npm list
├── @slidev/cli@52.14.2
├── @slidev/theme-default@0.25.0
├── @slidev/theme-seriph@0.25.0
└── vue@3.5.33
```
0 条评论