fix: br on \n
This commit is contained in:
parent
19cba7f57e
commit
4a578bb03f
@ -66,6 +66,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, "`")
|
||||
|
Loading…
Reference in New Issue
Block a user