#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 >}} {{< columns >}}
``` ```latex
$$ x = \begin{cases} {{</* katex */>}}
x = \begin{cases}
a &\text{if } b \\ a &\text{if } b \\
c &\text{if } d c &\text{if } d
\end{cases} $$ \end{cases}
{{</* /katex */>}}
``` ```
<---> <--->
{{< katex >}} {{< katex >}}
$$ x = \begin{cases} x = \begin{cases}
a &\text{if } b \\ a &\text{if } b \\
c &\text{if } d c &\text{if } d
\end{cases} $$ \end{cases}
{{< /katex >}} {{< /katex >}}
{{< /columns >}} {{< /columns >}}

View file

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