From c9cd434b5959c73222af7ffd821ec7a5d7152b5f Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Wed, 19 Jun 2024 04:32:56 +0400 Subject: [PATCH] Print raw HTML lines in mindflow. --- web/mindflow.templ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/mindflow.templ b/web/mindflow.templ index 88a7ded..feae8e1 100644 --- a/web/mindflow.templ +++ b/web/mindflow.templ @@ -28,9 +28,9 @@ templ Mindflow(posts []mindflow.Post, categories []mindflow.Category, r *http.Re for _, line := range strings.Split(post.Body, "\n") { if len(line) > 0 && line[0] == '>' { -

{ line }

+

@templ.Raw(line)

} else { -

{ line }

+

@templ.Raw(line)

} }