diff --git a/web/template/syzoj/problem.php b/web/template/syzoj/problem.php index 5ae76ff..ec2a78b 100644 --- a/web/template/syzoj/problem.php +++ b/web/template/syzoj/problem.php @@ -123,9 +123,9 @@ if ($pr_flag) { { $s = $str; if (strpos($s, "class='md") !== false) // 没找到,那就加上 - $s = "" . $s .""; + $s = "" . $s . ""; $s = bbcode_to_html($s); - return $s; + return $s; } ?>
@@ -475,7 +475,11 @@ if ($pr_flag) { $(this).html(marked.parse($(this).html())); - const md = window.markdownit(); + const md = window.markdownit()({ + html: true, + linkify: true, + typographer: true + }); $(this).html(md.render($(this).text())); });