From 7d36cb747d6d028b8dc8531860d6be5c24c1f86a Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Sat, 7 Dec 2024 18:19:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=9B=BE=E7=89=87=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=E7=9B=B8=E5=85=B3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/admin/md_check.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/web/admin/md_check.php b/web/admin/md_check.php index 04d1ab4..55535f4 100644 --- a/web/admin/md_check.php +++ b/web/admin/md_check.php @@ -1,34 +1,9 @@ '], ['\\lt', '\\gt'], $matches[0]); }, $markdown); - // 对图片内容存储到本机并替换 - $saveDir = "/home/judge/src/web/upload/markdown"; - $markdown = preg_replace_callback('/!\[.*?\]\((.*?)\)/', function ($matches) use ($saveDir) { - $imageUrl = $matches[1]; - $savedPath = downloadImage($imageUrl, $saveDir); - return str_replace($imageUrl, $savedPath, $matches[0]); - }, $markdown); return $markdown; }