How can I align math equations to the left in Github markdown syntax? My attempt using "align" doesn't work. My equations are always centered horizontally.
$$
\begin{align}
sin(α)={opposite \over hypotenuse}={h0 \over c}={h2 \over b}
\end{align}
$$
EDIT: Issue posted to GitHub at https://github.com/github/markup/issues/1570
The Math support in Markdown is fairly recent (May 2022) and the block expression syntax $$ seems to always render a centered result.
You might need to consider an inline expression syntax instead.
$\sqrt{3x-1}+(1+x)^2$ <=== # two trailing whitespace
$\sqrt{3x-1}+(1+x)^2$
For a bigger size, using as a workaround the title header ##:
## $\sqrt{3x-1}+(1+x)^2$ <=== # two trailing whitespace
## $\sqrt{3x-1}+(1+x)^2$
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With