aboutsummaryrefslogtreecommitdiff
path: root/exampleSite/content/docs
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-08-22 23:59:51 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-08-23 00:01:14 +0200
commit185e52d2f6015671d8c7e8393ce26c6627f0553e (patch)
treed3fd109618a8e2dbc6085c584ee81a0600077e98 /exampleSite/content/docs
parentc98b510fe050e1ec643dff97e63c9323e4dfb227 (diff)
#61, Add katex shortcode
Diffstat (limited to 'exampleSite/content/docs')
-rw-r--r--exampleSite/content/docs/shortcodes.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/exampleSite/content/docs/shortcodes.md b/exampleSite/content/docs/shortcodes.md
index 1b1e344..0994210 100644
--- a/exampleSite/content/docs/shortcodes.md
+++ b/exampleSite/content/docs/shortcodes.md
@@ -166,3 +166,28 @@ sequenceDiagram
{{< /mermaid >}}
{{< /columns >}}
+
+
+## KaTeX
+
+{{< columns >}}
+
+```
+$$ x = \begin{cases}
+ a &\text{if } b \\
+ c &\text{if } d
+\end{cases} $$
+```
+
+<--->
+
+{{< katex >}}
+$$ x = \begin{cases}
+ a &\text{if } b \\
+ c &\text{if } d
+\end{cases} $$
+{{< /katex >}}
+
+{{< /columns >}}
+
+