diff options
Diffstat (limited to 'content/overview-math.md')
| -rw-r--r-- | content/overview-math.md | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/content/overview-math.md b/content/overview-math.md index 3d29dd3..27ef78a 100644 --- a/content/overview-math.md +++ b/content/overview-math.md @@ -76,17 +76,19 @@ This is the most beautiful equation I've ever seen: ### Usage +{% raw %} ```rs -{%/* katex(block=false) */%} e^{i\pi}+1=0 {%/* end */%} +{% <katex block={false}> %} e^{i\pi}+1=0 {% </katex> %} ``` +{% endraw %} ### Output ```html -{% katex(block=false) %} e^{i\pi}+1=0 {% end %} +{% <katex block={false}> %} e^{i\pi}+1=0 {% </katex> %} ``` -{% katex(block=false) %} e^{i\pi}+1=0 {% end %} +{% <katex block={false}> %} e^{i\pi}+1=0 {% </katex> %} ### Block Mathematics @@ -94,17 +96,35 @@ Some Mathematics in display mode is fair enough: ### Usage +{% raw %} ```rs -{%/* katex(block=true) */%} \int_0^1 x^2 dx {%/* end */%} +{% <katex block={true}> %} \int_0^1 x^2 dx {% </katex> %} ``` +{% endraw %} ### Output ```html -{% katex(block=true) %} \int_0^1 x^2 dx {% end %} +{% <katex block={true}> %} \int_0^1 x^2 dx {% </katex> %} ``` -{% katex(block=true) %} \int_0^1 x^2 dx {% end %} +{% <katex block={true}> %} \int_0^1 x^2 dx {% </katex> %} + +### Usage + +{% raw %} +```rs +{% <katex block={true}> %} f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi {% </katex> %} +``` +{% endraw %} + +### Output + +```html +{% <katex block={true}> %} f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi {% </katex> %} +``` + +{% <katex block={true}> %} f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi {% </katex> %} ### Auto Render Inline |
