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

latex 公式颜色渲染,知乎显示不正常 #141

Closed
BottomCoder-Ander opened this issue May 17, 2022 · 2 comments
Closed

latex 公式颜色渲染,知乎显示不正常 #141

BottomCoder-Ander opened this issue May 17, 2022 · 2 comments

Comments

@BottomCoder-Ander
Copy link

公式

$$L = \left[\begin{aligned} 
    &1{\color{red}[0,0,0,0]} \\
    &2{\color{red}[0,1,0,0]} \\
    &3{\color{red}[1,1,0,1]} \\ 
    &4{\color{red}[1,2,0,0]} \\
    &5{\color{red}[2,2,0,0]} \\
    &6{\color{green}[2,2,0,1]} \\
    &7{\color{red}[3,3,0,2]} \\ 
    &8{\color{red}[3,3,1,2]} \\
    &9{\color{red}[4,3,1,2]} 
    \end{aligned}
    \right]\\$$

本地
image

知乎
image

知乎上只渲染了一个括号?怎么回事。是知乎的bug吗

@shouldsee
Copy link

shouldsee commented May 20, 2022

估计本地的vscode md latex渲染和zhihu后端的latex渲染不同. 按照latex严格语法即可

$$
L = \left[\begin{aligned} 
    &1{\color{red}{ [0,0,0,0]} }  \\  %% 括号
    &2{\color{red}[0,1,0,0]} \\
    &3{\color{red}[1,1,0,1]} \\ 
    &4{\color{red}[1,2,0,0]} \\
    &5{\color{red}[2,2,0,0]} \\
    &6{\color{green}[2,2,0,1]} \\
    &7{\color{red}[3,3,0,2]} \\ 
    &8{\color{red}[3,3,1,2]} \\
    &9{\color{red}[4,3,1,2]} 
    \end{aligned}
    \right]\\
$$

img

建议close

@BottomCoder-Ander
Copy link
Author

估计本地的vscode md latex渲染和zhihu后端的latex渲染不同. 按照latex严格语法即可

$$
L = \left[\begin{aligned} 
    &1{\color{red}{ [0,0,0,0]} }  \\  %% 括号
    &2{\color{red}[0,1,0,0]} \\
    &3{\color{red}[1,1,0,1]} \\ 
    &4{\color{red}[1,2,0,0]} \\
    &5{\color{red}[2,2,0,0]} \\
    &6{\color{green}[2,2,0,1]} \\
    &7{\color{red}[3,3,0,2]} \\ 
    &8{\color{red}[3,3,1,2]} \\
    &9{\color{red}[4,3,1,2]} 
    \end{aligned}
    \right]\\
$$

img

建议close

好的

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