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

In block mathJax, _ will be converted to em #1445

Closed
Vanessa219 opened this issue Mar 11, 2019 · 3 comments
Closed

In block mathJax, _ will be converted to em #1445

Vanessa219 opened this issue Mar 11, 2019 · 3 comments

Comments

@Vanessa219
Copy link

Describe the bug
In block mathJax, _ will be converted to em

To Reproduce

Marked String

$$ 
ALG.1  Gradient  Boost  \\\\
F_0(x) = arg \min_p \sum_{i=1}^N L(y_i, p)  \\\\
for\ m=1\ to\ M\ do:\\\\
\ \ \ \hat{y_i} =  -[\frac {\partial L(y_i,F(x_i))}{\partial F(x_i)}]_{F(x)}  \text{计算残差, 梯度下降的方向}
f_m = arg \min_p \sum_{i=1}^N L(y_i, F_{m-1}(x_i)+\eta q(x_i))  \text{基学习器h,优化f,计算步长} \\\\
F_m(x) = F_{m-1}(x) + \eta f_m(x)  \text{更新模型} \\\\
\text{end For}
$$

Expected behavior

see b3log/vditor#24 (comment) image

@UziTech
Copy link
Member

UziTech commented Mar 11, 2019

You should be able to use a code block to prevent markdown parsing

```
$$ 
ALG.1  Gradient  Boost  \\\\
F_0(x) = arg \min_p \sum_{i=1}^N L(y_i, p)  \\\\
for\ m=1\ to\ M\ do:\\\\
\ \ \ \hat{y_i} =  -[\frac {\partial L(y_i,F(x_i))}{\partial F(x_i)}]_{F(x)}  \text{计算残差, 梯度下降的方向}
f_m = arg \min_p \sum_{i=1}^N L(y_i, F_{m-1}(x_i)+\eta q(x_i))  \text{基学习器h,优化f,计算步长} \\\\
F_m(x) = F_{m-1}(x) + \eta f_m(x)  \text{更新模型} \\\\
\text{end For}
$$
```

@UziTech
Copy link
Member

UziTech commented Mar 11, 2019

marked does not understand mathJax

@UziTech
Copy link
Member

UziTech commented Mar 11, 2019

see #722

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants