This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git

commit b31d644b92f00914440812e898f93a3581b33029
Author: Luffy <[email protected]>
AuthorDate: Tue Dec 10 12:04:05 2024 +0800

    fix: Fix render comments with line breaks
---
 pkg/converter/markdown.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/converter/markdown.go b/pkg/converter/markdown.go
index 082a198a..5dbab9fc 100644
--- a/pkg/converter/markdown.go
+++ b/pkg/converter/markdown.go
@@ -65,7 +65,7 @@ func Markdown2HTML(source string) string {
        return html
 }
 
-// Markdown2BasicHTML convert markdown to html ,Only basic syntax can be used
+// Markdown2BasicHTML convert markdown to html, Only basic syntax can be used
 func Markdown2BasicHTML(source string) string {
        content := Markdown2HTML(source)
        filter := bluemonday.NewPolicy()
@@ -124,7 +124,7 @@ func (r *DangerousHTMLRenderer) renderHTMLBlock(w 
util.BufWriter, source []byte,
                l := n.Lines().Len()
                for i := 0; i < l; i++ {
                        line := n.Lines().At(i)
-                       r.Writer.SecureWrite(w, 
r.Filter.SanitizeBytes(line.Value(source)))
+                       r.Writer.SecureWrite(w, line.Value(source))
                }
        } else {
                if n.HasClosure() {

Reply via email to