改回原来的试试
This commit is contained in:
@@ -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)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user