From e4e43bd9b12a3e37f0d3c2760ea7f867ba8273a7 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Sat, 11 Apr 2020 20:05:43 +0200 Subject: Refactor KaTeX shortcode, remove whitespaces and fix font size --- exampleSite/content/docs/shortcodes/katex.md | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'exampleSite/content/docs/shortcodes/katex.md') diff --git a/exampleSite/content/docs/shortcodes/katex.md b/exampleSite/content/docs/shortcodes/katex.md index fae88c5..4beeaa0 100644 --- a/exampleSite/content/docs/shortcodes/katex.md +++ b/exampleSite/content/docs/shortcodes/katex.md @@ -7,20 +7,14 @@ KaTeX shortcode let you render math typesetting in markdown document. See [KaTeX ```latex {{}} -x = \begin{cases} - a &\text{if } b \\ - c &\text{if } d -\end{cases} +f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi {{}} ``` <---> -{{< katex >}} -x = \begin{cases} - a &\text{if } b \\ - c &\text{if } d -\end{cases} +{{< katex display >}} +f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi {{< /katex >}} {{< /columns >}} @@ -29,9 +23,6 @@ x = \begin{cases} Here is some inline example: {{< katex >}}\pi(x){{< /katex >}}, rendered in the same line. And below is `display` example, having `display: block` {{< katex display >}} -x = \begin{cases} - a &\text{if } b \\ - c &\text{if } d -\end{cases} +f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi {{< /katex >}} Text continues here. -- cgit v1.2.3