Print raw HTML lines in mindflow.
This commit is contained in:
parent
077a5ba612
commit
c9cd434b59
@ -28,9 +28,9 @@ templ Mindflow(posts []mindflow.Post, categories []mindflow.Category, r *http.Re
|
|||||||
</header>
|
</header>
|
||||||
for _, line := range strings.Split(post.Body, "\n") {
|
for _, line := range strings.Split(post.Body, "\n") {
|
||||||
if len(line) > 0 && line[0] == '>' {
|
if len(line) > 0 && line[0] == '>' {
|
||||||
<p class="quote">{ line }</p>
|
<p class="quote">@templ.Raw(line)</p>
|
||||||
} else {
|
} else {
|
||||||
<p>{ line }</p>
|
<p>@templ.Raw(line)</p>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<footer>
|
<footer>
|
||||||
|
Loading…
Reference in New Issue
Block a user