fix: br on \n
All checks were successful
Deploy / CreateImage (push) Successful in 2m39s
Deploy / DeployService (push) Successful in 29s

This commit is contained in:
skeris 2025-05-30 22:22:49 +03:00
parent f5ae8d5937
commit 966a3eb05e

@ -80,6 +80,7 @@ func RenderImage(content string) template.HTML {
contents := strings.Split(content, "`,`")
var builder strings.Builder
content = strings.ReplaceAll(content, "\n","<br>")
for i, cnt := range contents {
if i == 0 {
cnt = strings.TrimPrefix(cnt, "`")