From e785862af7b9a65b9f70067ca71fd20f8538f667 Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Fri, 8 Mar 2024 15:57:45 +0000 Subject: [PATCH 1/2] fix --- modules/markup/markdown/markdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/markup/markdown/markdown.go b/modules/markup/markdown/markdown.go index f0b1afa27e309..5f209f8b642e4 100644 --- a/modules/markup/markdown/markdown.go +++ b/modules/markup/markdown/markdown.go @@ -104,7 +104,7 @@ func SpecializedMarkdown() goldmark.Markdown { } // include language-x class as part of commonmark spec - _, err = w.WriteString(``) + _, err = w.WriteString(``) if err != nil { return } From 79e88a7500b3a153accc0ea5e84a5281e200426e Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Mon, 11 Mar 2024 13:03:54 +0900 Subject: [PATCH 2/2] Update modules/markup/markdown/markdown.go Co-authored-by: wxiaoguang --- modules/markup/markdown/markdown.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/markup/markdown/markdown.go b/modules/markup/markdown/markdown.go index 5f209f8b642e4..4cca71d511f35 100644 --- a/modules/markup/markdown/markdown.go +++ b/modules/markup/markdown/markdown.go @@ -104,6 +104,7 @@ func SpecializedMarkdown() goldmark.Markdown { } // include language-x class as part of commonmark spec + // the "display" class is used by "js/markup/math.js" to render the code element as a block _, err = w.WriteString(``) if err != nil { return