Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
HidegonSan committed Nov 25, 2023
1 parent 197ac74 commit 2fdce2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/shortcodes/katex.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if eq (.Get 0) "display" -}}
<p class="katex_sc" data-katex="\displaystyle {{- trim .Inner "\n\r" -}}">{{- trim .Inner "\n\r" -}}</p>
<p class="katex_sc" data-katex="\displaystyle {{ trim .Inner "\n\r" -}}">{{- trim .Inner "\n\r" -}}</p>
{{- else if eq (.Get 0) "inline" -}}
<span class="katex_sc" data-katex="{{- trim .Inner "\n\r" -}}">{{- trim .Inner "\n\r" -}}</span>
{{- else -}}
<p class="katex_sc" data-katex="\displaystyle {{- trim .Inner "\n\r" -}}">{{- trim .Inner "\n\r" -}}</p>
<p class="katex_sc" data-katex="\displaystyle {{ trim .Inner "\n\r" -}}">{{- trim .Inner "\n\r" -}}</p>
{{- end -}}

0 comments on commit 2fdce2e

Please sign in to comment.