From 06b4e61de1a263ac0a3ad635932d9d9f936766ab Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Sat, 10 May 2025 16:02:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=BA=9B=E5=AF=B9ma?= =?UTF-8?q?rkdown=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/template/syzoj/problem.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/template/syzoj/problem.php b/web/template/syzoj/problem.php index 8737c3f..c892832 100644 --- a/web/template/syzoj/problem.php +++ b/web/template/syzoj/problem.php @@ -501,7 +501,7 @@ if ($pr_flag) { $(document).ready(function () { $("#creator").load("problem-ajax.php?pid="); - + marked.use({ // 开启异步渲染 async: true, @@ -512,9 +512,9 @@ if ($pr_flag) { }); $(".md").each(function () { - + $(this).html(marked.parse($(this).html())); - + const md = window.markdownit(); md.set({ html: true,