remove torchlight markup from rss

This commit is contained in:
John Bowdre 2024-04-29 20:48:08 -05:00
parent 3501867959
commit 871be97942

View file

@ -45,6 +45,8 @@
{{- $content := replaceRE "a href=\"(#.*?)\"" (printf "%s%s%s" "a href=\"" .Permalink "$1\"") .Content -}}
{{- $content = replaceRE "img src=\"(.*?)\"" (printf "%s%s%s" "img src=\"" .Permalink "$1\"") $content -}}
{{- $content = replaceRE "<svg.*</svg>" "" $content -}}
{{- $content = replaceRE `(?:(?:<!--)|(?:#)|(?:\/\/))*\s*torchlight!.*\n` "" $content -}}
{{- $content = replaceRE `(?:(?:<!--)|(?:#)|(?:\/\/))*\s*\[tl!.*\].*\n` "" $content -}}
{{- $content = replaceRE `-moz-tab-size:\d;-o-tab-size:\d;tab-size:\d;?` "" $content -}}
<description>{{ $content | html }}</description>
</item>