1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-10 00:12:09 +00:00

Switch from markdownify to Page.Renderstring

Just for consistency
This commit is contained in:
Rohan Kumar 2023-11-10 10:01:59 -08:00
parent 867072103d
commit d1fd05e56e
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -12,6 +12,6 @@
<span id="{{ $id }}" tabindex="-1"> <span id="{{ $id }}" tabindex="-1">
<strong itemprop="name"> <span itemprop="codeSampleType">Code snippet</span> {{ $codeIndex }}</strong>{{with .Get "lang"}} (<span itemprop="programmingLanguage">{{ . }}</span>){{ end -}} <strong itemprop="name"> <span itemprop="codeSampleType">Code snippet</span> {{ $codeIndex }}</strong>{{with .Get "lang"}} (<span itemprop="programmingLanguage">{{ . }}</span>){{ end -}}
</span>: </span>:
{{ .Inner | markdownify | safeHTML }} {{ .Inner | .Page.RenderString | safeHTML }}
</figcaption> </figcaption>
{{- .Page.Scratch.Set "codeIndex" (add 1 $codeIndex) -}} {{- .Page.Scratch.Set "codeIndex" (add 1 $codeIndex) -}}