aboutsummaryrefslogtreecommitdiff
path: root/exampleSite/content/docs/shortcodes.md
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-08-23 13:22:11 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-08-23 13:23:06 +0200
commit8f1cdb6aee42d687d9f0574409b846b747e2960e (patch)
treeb2ef51b9da24e7e8a15f51cd8c6deff2169346f6 /exampleSite/content/docs/shortcodes.md
parent185e52d2f6015671d8c7e8393ce26c6627f0553e (diff)
#61, Remove need for $$ in katex shortcode
Diffstat (limited to 'exampleSite/content/docs/shortcodes.md')
-rw-r--r--exampleSite/content/docs/shortcodes.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/exampleSite/content/docs/shortcodes.md b/exampleSite/content/docs/shortcodes.md
index 0994210..2844acb 100644
--- a/exampleSite/content/docs/shortcodes.md
+++ b/exampleSite/content/docs/shortcodes.md
@@ -172,20 +172,22 @@ sequenceDiagram
{{< columns >}}
-```
-$$ x = \begin{cases}
+```latex
+{{</* katex */>}}
+x = \begin{cases}
a &\text{if } b \\
c &\text{if } d
-\end{cases} $$
+\end{cases}
+{{</* /katex */>}}
```
<--->
{{< katex >}}
-$$ x = \begin{cases}
+x = \begin{cases}
a &\text{if } b \\
c &\text{if } d
-\end{cases} $$
+\end{cases}
{{< /katex >}}
{{< /columns >}}