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