修改markdown
This commit is contained in:
@@ -475,11 +475,7 @@ if ($pr_flag) {
|
||||
<?php if ($OJ_MARKDOWN && $OJ_MARKDOWN == "marked.js") { ?>
|
||||
$(this).html(marked.parse($(this).html()));
|
||||
<?php } else if ($OJ_MARKDOWN && $OJ_MARKDOWN == "markdown-it") { ?>
|
||||
const md = window.markdownit()({
|
||||
html: true,
|
||||
linkify: true,
|
||||
typographer: true
|
||||
});
|
||||
const md = window.markdownit();
|
||||
$(this).html(md.render($(this).text()));
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user