再试试

This commit is contained in:
2025-05-10 16:20:42 +08:00
parent b3f23cf2f0
commit 5f719c78e1

View File

@@ -513,7 +513,7 @@ if ($pr_flag) {
$(".md").each(function () { $(".md").each(function () {
<?php if (isset($OJ_MARKDOWN) && $OJ_MARKDOWN == "marked.js") { ?> <?php if (isset($OJ_MARKDOWN) && $OJ_MARKDOWN == "marked.js") { ?>
$(this).text(marked.parse($(this).html())); $(this).html(marked.parse($(this).html()).text());
<?php } else if (isset($OJ_MARKDOWN) && $OJ_MARKDOWN == "markdown-it") { ?> <?php } else if (isset($OJ_MARKDOWN) && $OJ_MARKDOWN == "markdown-it") { ?>
const md = window.markdownit(); const md = window.markdownit();
md.set({ md.set({
@@ -521,7 +521,7 @@ if ($pr_flag) {
linkify: true, linkify: true,
typographer: true, typographer: true,
}) })
$(this).text(md.render($(this).html())); $(this).html(md.render($(this).html()).text());
<?php } ?> <?php } ?>
}); });
// adding note for ```input1 ```output1 in description // adding note for ```input1 ```output1 in description