diff --git a/web/template/syzoj/problem.php b/web/template/syzoj/problem.php index ab23eca..1a7485e 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 () { - + let markdown_content = marked.parse($(this).html()); - + const md = window.markdownit(); md.set({ html: true,