改回原来的试试

This commit is contained in:
2025-05-10 16:29:56 +08:00
parent 712c9fbe57
commit cdfb67fb3f
2 changed files with 3 additions and 3 deletions

View File

@@ -513,7 +513,7 @@ if ($pr_flag) {
$(".md").each(function () {
<?php if (isset($OJ_MARKDOWN) && $OJ_MARKDOWN == "marked.js") { ?>
markdown_content = marked.parse($(this).html()));
let markdown_content = marked.parse($(this).html());
<?php } else if (isset($OJ_MARKDOWN) && $OJ_MARKDOWN == "markdown-it") { ?>
const md = window.markdownit();
md.set({
@@ -521,7 +521,7 @@ if ($pr_flag) {
linkify: true,
typographer: true,
})
markdown_content = md.render($(this).html());
let markdown_content = md.render($(this).html());
<?php } ?>
$(this).html(markdown_content)
});