diff --git a/core/chat/events/events.go b/core/chat/events/events.go index 3a3871393..18fdfee6b 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 c532f8b92..73f79999b 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(