Fix link and heading rendering in RSS

This commit is contained in:
Joshua Goins 2025-01-01 09:22:43 -05:00
parent 9b9a0ff86c
commit e9d0a53187
2 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1 @@
<h{{ add .Level 2 }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}</h{{ add .Level 2 }}>

View file

@ -0,0 +1,2 @@
<a href="{{ .Destination | safeURL }}" {{ if strings.HasPrefix .Destination "http" }}
target="_blank"{{ end }}>{{ .Text | safeHTML }}</a>