Skip to content

Commit b8f3ea6

Browse files
committed
Fix remaining CODEGEN math rendering: split all multi-line $$ blocks
8 display math blocks had $$ on the same line as the opening content (e.g., $$0 = \begin{cases}). Split them so $$ is always on its own line for remark-math compatibility.
1 parent e1f56a2 commit b8f3ea6

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

src/content/docs/developer/codegen-library.mdx

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,8 @@ $z \in \{-1, 0, 1\}$
10901090

10911091
#### Equations
10921092

1093-
$$0 = \begin{cases}
1093+
$$
1094+
0 = \begin{cases}
10941095
\dot{x}_i = K_i x_k & \text{if } z = 0 \\
10951096
x_i - x_i^{min} & \text{if } z = -1 \\
10961097
x_i - x_i^{max} & \text{if } z = 1
@@ -1246,15 +1247,17 @@ $z \in \{-2, -1, 0, 1, 2\}$
12461247

12471248
#### Equations
12481249

1249-
$$\text{if } z = 0: \quad
1250+
$$
1251+
\text{if } z = 0: \quad
12501252
\begin{cases}
12511253
0 = K_p x_k + x_1 - x_j \\
12521254
\dot{x}_1 = K_i \, x_k \\
12531255
0 = x_2 - x_1
12541256
\end{cases}
12551257
$$
12561258

1257-
$$\text{if } z = 2: \quad
1259+
$$
1260+
\text{if } z = 2: \quad
12581261
\begin{cases}
12591262
0 = x_j^{max} - x_j \\
12601263
\dot{x}_1 = 0 \\
@@ -1269,7 +1272,8 @@ $$\text{if } z = 2: \quad
12691272
\end{cases}
12701273
$$
12711274

1272-
$$\text{if } z = -2: \quad
1275+
$$
1276+
\text{if } z = -2: \quad
12731277
\begin{cases}
12741278
0 = x_j^{min} - x_j \\
12751279
\dot{x}_1 = 0 \\
@@ -1823,7 +1827,8 @@ $z \in \{1, 2\}$
18231827

18241828
#### Equations
18251829

1826-
$$0 = \begin{cases}
1830+
$$
1831+
0 = \begin{cases}
18271832
x_l - x_i & \text{if } z = 1 \\
18281833
x_l - x_j & \text{if } z = 2
18291834
\end{cases}
@@ -1877,7 +1882,8 @@ $z \in \{-1, 0, 1\}$
18771882

18781883
#### Equations
18791884

1880-
$$0 = \begin{cases}
1885+
$$
1886+
0 = \begin{cases}
18811887
x_j & \text{if } z \in \{-1, 0\} \\
18821888
x_j - 1 & \text{if } z = 1
18831889
\end{cases}
@@ -1943,7 +1949,8 @@ $z \in \{-1, 0, 1\}$
19431949

19441950
#### Equations
19451951

1946-
$$0 = \begin{cases}
1952+
$$
1953+
0 = \begin{cases}
19471954
x_j & \text{if } z \in \{-1, 0\} \\
19481955
x_j - 1 & \text{if } z = 1
19491956
\end{cases}
@@ -2008,7 +2015,8 @@ $z \in \{1, 2\}$ represents the automaton state.
20082015

20092016
#### Equations
20102017

2011-
$$0 = \begin{cases}
2018+
$$
2019+
0 = \begin{cases}
20122020
x_k - v_1 & \text{if } z = 1 \\
20132021
x_k - v_2 & \text{if } z = 2
20142022
\end{cases}

0 commit comments

Comments
 (0)