Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Remove adding <br> tags to newlines

Gabe Kangas5ac18b3dc2e1
diff --git a/core/chat/events/events.go b/core/chat/events/events.go
index 3a38713933..18fdfee6be 100644
--- a/core/chat/events/events.go
+++ b/core/chat/events/events.go
@@ -96,7 +96,6 @@ func RenderMarkdown(raw string) string {
markdown := goldmark.New(
goldmark.WithRendererOptions(
html.WithUnsafe(),
- html.WithHardWraps(),
),
goldmark.WithExtensions(
extension.NewLinkify(
diff --git a/utils/utils.go b/utils/utils.go
index c532f8b92b..73f79999b9 100644
--- a/utils/utils.go
+++ b/utils/utils.go
@@ -90,7 +90,6 @@ func RenderSimpleMarkdown(raw string) string {
markdown := goldmark.New(
goldmark.WithRendererOptions(
html.WithUnsafe(),
- html.WithHardWraps(),
),
goldmark.WithExtensions(
extension.NewLinkify(