From 9fa444757af943adfe6c4c9b39dddae9738ab82b Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Mon, 13 Jan 2020 19:05:54 +0100 Subject: #117, Update KaTeX shortcode, add displayMode param --- exampleSite/content/docs/shortcodes/katex.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'exampleSite/content') diff --git a/exampleSite/content/docs/shortcodes/katex.md b/exampleSite/content/docs/shortcodes/katex.md index 965577f..fae88c5 100644 --- a/exampleSite/content/docs/shortcodes/katex.md +++ b/exampleSite/content/docs/shortcodes/katex.md @@ -2,11 +2,11 @@ KaTeX shortcode let you render math typesetting in markdown document. See [KaTeX](https://katex.org/) -## Example +## Example {{< columns >}} ```latex -{{}} +{{}} x = \begin{cases} a &\text{if } b \\ c &\text{if } d @@ -25,3 +25,13 @@ x = \begin{cases} {{< /columns >}} +## Display Mode Example + +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} +{{< /katex >}} +Text continues here. -- cgit v1.2.3