From 185e52d2f6015671d8c7e8393ce26c6627f0553e Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Thu, 22 Aug 2019 23:59:51 +0200 Subject: #61, Add katex shortcode --- exampleSite/content/docs/shortcodes.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'exampleSite/content/docs') 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 >}} + + -- cgit v1.2.3