#61, Add katex shortcode

This commit is contained in:
Alex Shpak
2019-08-22 23:59:51 +02:00
parent c98b510fe0
commit 185e52d2f6
7 changed files with 54 additions and 4 deletions
+13
View File
@@ -260,6 +260,19 @@ sequenceDiagram
{{< /mermaid >}}
```
### KaTeX Syntax
Render math formulas with [KaTeX](https://katex.org/)
```
{{< katex >}}
$$ x = \begin{cases}
a &\text{if } b \\
c &\text{if } d
\end{cases} $$
{{< /katex >}}
```
## Contributing
### [Extra credits to contributors](https://github.com/alex-shpak/hugo-book/graphs/contributors)