1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-24 01:42:10 +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">
<strong itemprop="name"> <span itemprop="codeSampleType">Code snippet</span> {{ $codeIndex }}</strong>{{with .Get "lang"}} (<span itemprop="programmingLanguage">{{ . }}</span>){{ end -}}
</span>:
{{ .Inner | markdownify | safeHTML }}
{{ .Inner | .Page.RenderString | safeHTML }}
</figcaption>
{{- .Page.Scratch.Set "codeIndex" (add 1 $codeIndex) -}}