From d62b005cb358d5302eda027d9edab9f48bee2086 Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Sat, 10 May 2025 16:23:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E8=AF=95append?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/template/syzoj/problem.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/template/syzoj/problem.php b/web/template/syzoj/problem.php index 87fc37e..c80ade3 100644 --- a/web/template/syzoj/problem.php +++ b/web/template/syzoj/problem.php @@ -513,7 +513,7 @@ if ($pr_flag) { $(".md").each(function () { - $(this).html(marked.parse($(this).html()).text()); + markdown_content = marked.parse($(this).html())); const md = window.markdownit(); md.set({ @@ -521,8 +521,9 @@ if ($pr_flag) { linkify: true, typographer: true, }) - $(this).html(md.render($(this).html()).text()); + markdown_content = md.render($(this).html()); + $(this).append(markdown_content) }); // adding note for ```input1 ```output1 in description for (let i = 1; i < 10; i++) {