add KaTeX support in figure caption

This commit is contained in:
Charles.Day 2024-12-24 14:17:03 +01:00 committed by GitHub
parent 6be4e9f58a
commit 57d4880d3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
{{- $image := .Page.Resources.GetMatch (printf "%s" (.Destination | safeURL)) -}}
{{- $Permalink := .Destination | relURL | safeURL -}}
{{- $alt := .PlainText | safeHTML -}}
{{- $title := .Title | safeHTML -}}
{{- $title := .Title | markdownify | safeHTML -}}
{{- $Width := 0 -}}
{{- $Height := 0 -}}
{{- $Srcset := "" -}}
@ -41,5 +41,5 @@
{{ end }}
>
{{- if $title }}
<figcaption>{{ .Title }}</figcaption>
<figcaption>{{ .Title | markdownify }}</figcaption>
{{- end }}