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

MathJax plugin #351

Closed
jakekwak opened this issue May 1, 2020 · 2 comments
Closed

MathJax plugin #351

jakekwak opened this issue May 1, 2020 · 2 comments
Assignees
Milestone

Comments

@jakekwak
Copy link
Contributor

jakekwak commented May 1, 2020

  preview: {
    math: {
        engine: "MathJax",
    },
  },

Next mathjax(code block) is not working

**其他主题不带行号,可自定义是否换行,代码大小与当前编辑器一致**

### 4.3 数学公式

> 支持平台:微信公众号、知乎。

行内公式使用方法,比如这个化学公式:$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$

块公式使用方法如下:

$$H(D_2) = -\left(\frac{2}{4}\log_2 \frac{2}{4} + \frac{2}{4}\log_2 \frac{2}{4}\right) = 1$$

矩阵:

$$
  \begin{pmatrix}
  1 & a_1 & a_1^2 & \cdots & a_1^n \\
  1 & a_2 & a_2^2 & \cdots & a_2^n \\
  \vdots & \vdots & \vdots & \ddots & \vdots \\
  1 & a_m & a_m^2 & \cdots & a_m^n \\
  \end{pmatrix}
$$


\```
// FileName: HelloWorld.java
public class HelloWorld {
  // Java 入口程序,程序从此入口
  public static void main(String[] args) {
    System.out.println("Hello,World!"); // 向控制台打印一条语句
  }
}
\```

29

@Vanessa219
Copy link
Owner

Lute 对块数学公式的解析要求在 $$ 前后必须换行
image

@jakekwak
Copy link
Contributor Author

jakekwak commented May 2, 2020

how about inline math?
31

@Vanessa219 Vanessa219 reopened this May 2, 2020
@Vanessa219 Vanessa219 self-assigned this May 2, 2020
@Vanessa219 Vanessa219 changed the title MathJax MathJax plugin May 2, 2020
@Vanessa219 Vanessa219 added this to the 3.1.0 milestone May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants