marcoaccame / test

just a test repo
0 stars 0 forks source link

special features in markdown #9

Open marcoaccame opened 1 year ago

marcoaccame commented 1 year ago

In here some tricks for github and also for markdown editor

Math support

In https://github.blog/2022-05-19-math-support-in-markdown/ there is:

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}$$

See also here: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/writing-mathematical-expressions

$\sqrt{3x-1}+(1+x)^2$

From https://support.typora.io/Math/

$$ \begin{align} y = y(x,t) &= A e^{i\theta} \ &= A (\cos \theta + i \sin \theta) \ &= A (\cos(kx - \omega t) + i \sin(kx - \omega t)) \ &= A\cos(kx - \omega t) + i A\sin(kx - \omega t) \ &= A\cos \Big(\frac{2\pi}{\lambda}x - \frac{2\pi v}{\lambda} t \Big) + i A\sin \Big(\frac{2\pi}{\lambda}x - \frac{2\pi v}{\lambda} t \Big) \ &= A\cos \frac{2\pi}{\lambda} (x - v t) + i A\sin \frac{2\pi}{\lambda} (x - v t) \end{align} $$

Testing subscript and superscript

Testing subscript subscript level 2

Testing superscript superscript level 2