10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-27 06:43:47 +01:00
QUESTDB_website/layouts/shortcodes/tex.html

16 lines
675 B
HTML
Raw Normal View History

<span class="jsonly">
{{ if .IsNamedParams }} <!-- display mode, wrap eqn with $$ $$-->
$${{ .Get "display" }}$$
{{ else }} <!-- inline mode, wrap eqn with \( \)-->
\({{ .Get 0 }}\)
{{ end }}
</span>
<noscript>
{{ if .IsNamedParams }} <!-- display mode -->
<div style="text-align:center;">
<img src="https://latex.codecogs.com/gif.latex?{{ .Get "display" }}" title="{{ .Get "display" }}" />
</div>
{{ else }} <!-- inline mode -->
<img style="display:inline;vertical-align:middle;" src="https://latex.codecogs.com/gif.latex?\inline&space;{{ .Get 0 }}" title="{{ .Get 0 }}" />
{{ end }}
</noscript>