#61, Remove need for $$ in katex shortcode

This commit is contained in:
Alex Shpak 2019-08-23 13:22:11 +02:00
parent 185e52d2f6
commit 8f1cdb6aee
2 changed files with 8 additions and 6 deletions

View file

@ -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 >}}

View file

@ -7,6 +7,6 @@
{{ end }}
<p class="katex{{ with .Get "class" }} {{ . }}{{ end }}">
{{ .Inner }}
$$ {{ .Inner }} $$
</p>