浏览代码

demo: update math example from Mmark to Goldmark

George Cushen 5 年之前
父节点
当前提交
a05bc974c7
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      exampleSite/content/post/writing-technical-content/index.md

+ 3 - 3
exampleSite/content/post/writing-technical-content/index.md

@@ -55,16 +55,16 @@ $$\gamma_{n} = \frac{ \left | \left (\mathbf x_{n} - \mathbf x_{n-1} \right )^T
 
 Example **inline math** `$\nabla F(\mathbf{x}_{n})$` renders as $\nabla F(\mathbf{x}_{n})$.
 
-Example **multi-line math** using the `\\` math linebreak:
+Example **multi-line math** using the `\\\\` math linebreak:
 
 ```tex
-$$f(k;p_0^*) = \begin{cases} p_0^* & \text{if }k=1, \\
+$$f(k;p_0^*) = \begin{cases} p_0^* & \text{if }k=1, \\\\
 1-p_0^* & \text {if }k=0.\end{cases}$$
 ```
 
 renders as
 
-$$f(k;p_0^*) = \begin{cases} p_0^* & \text{if }k=1, \\
+$$f(k;p_0^*) = \begin{cases} p_0^* & \text{if }k=1, \\\\
 1-p_0^* & \text {if }k=0.\end{cases}$$
 
 ### Diagrams