-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: regression formatting inline math (#122)
- Loading branch information
Showing
4 changed files
with
72 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
!! should maintain spacing in this example !! | ||
## Math rendering | ||
|
||
We support code blocks with the "math" type! | ||
|
||
```math | ||
G_{\mu v} = \frac{8 \pi G}{c^4} T_{\mu v} | ||
``` | ||
|
||
We also support math blocks and inline math blocks as well! | ||
|
||
When $a \ne 0$, there are two solutions to $(ax^2 + bx + c = 0)$ and they are | ||
|
||
$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$ | ||
|
||
You can even typeset individual letters or whole sentences inline just like $x$ | ||
or $Quadratic \; formula$. You can also use math blocks to typeset whole | ||
equations with $\LaTeX$: | ||
|
||
$$ \begin{aligned} \dot{x} & = \sigma(y-x) \\ \dot{y} & = \rho x - y - xz \\ | ||
\dot{z} & = -\beta z + xy \end{aligned} $$ | ||
|
||
[expect] | ||
## Math rendering | ||
|
||
We support code blocks with the "math" type! | ||
|
||
```math | ||
G_{\mu v} = \frac{8 \pi G}{c^4} T_{\mu v} | ||
``` | ||
|
||
We also support math blocks and inline math blocks as well! | ||
|
||
When $a \ne 0$, there are two solutions to $(ax^2 + bx + c = 0)$ and they are | ||
|
||
$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$ | ||
|
||
You can even typeset individual letters or whole sentences inline just like $x$ | ||
or $Quadratic \; formula$. You can also use math blocks to typeset whole | ||
equations with $\LaTeX$: | ||
|
||
$$ \begin{aligned} \dot{x} & = \sigma(y-x) \\ \dot{y} & = \rho x - y - xz \\ | ||
\dot{z} & = -\beta z + xy \end{aligned} $$ |