diff --git a/web/admin/md_check.php b/web/admin/md_check.php
index f9e4e27..6195e52 100644
--- a/web/admin/md_check.php
+++ b/web/admin/md_check.php
@@ -4,7 +4,11 @@ function decodeMarkdownEntities($markdown) {
// $markdown = preg_replace_callback('/(```.*?```|`[^`]*`)/s', function ($matches) {
// return htmlentities($matches[0], ENT_QUOTES, 'UTF-8');
// }, $markdown);
-
+ // Remove
tags in code blocks
+ $markdown = preg_replace_callback('/(```.*?```|`[^`]*`)/s', function ($matches) {
+ return str_replace('
', '', $matches[0]);
+ }, $markdown);
+
// Decode HTML entities in inline math and display math
$markdown = preg_replace_callback('/(\$\$.*?\$\$|\$[^$]*\$)/s', function ($matches) {
return htmlentities($matches[0], ENT_QUOTES, 'UTF-8');