requarks / wiki

Wiki.js | A modern and powerful wiki app built on Node.js
https://js.wiki
GNU Affero General Public License v3.0
24.69k stars 2.73k forks source link

Bug: `amp;` in LaTex #649

Closed time-river closed 6 years ago

time-river commented 6 years ago

Actual behavior

wikijs version: 1.0.102 Release

I write a LaTex formulation in wiki, Here:

$$
\max_{\boldsymbol{\alpha}} = \sum_{i=1}^{m}\alpha_i - \frac{1}{2} \sum_{i=1}^{m}\sum_{j=1}^{m}\lambda_i \lambda_j \boldsymbol{x}_i^T \boldsymbol{x}_j \\
\begin{align}
& s.t. & \quad \sum_{i=1}^{m}\alpha_i y_i = 0, \\
& & \alpha_i \geq 0, \ i = 1, 2, 3, ..., m
\end{align}
$$

It's shows:

Expected behavior

not exist amp;

Steps to reproduce the behavior

write some LaTex formulation .

NGPixel commented 6 years ago

Duplicate of #525