From 0f53854bd25ce1e96d7cd46e1bf1fab53cd1007e Mon Sep 17 00:00:00 2001 From: root Date: Wed, 20 May 2026 22:59:20 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20D107=20=C2=B7=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8DmarkdownToHtml=E5=87=BD=E6=95=B0JS=E8=AF=AD=E6=B3=95?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=AF=BC=E8=87=B4=E9=A1=B5=E9=9D=A2=E6=97=A0?= =?UTF-8?q?=E5=93=8D=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- homepage/index.html | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/homepage/index.html b/homepage/index.html index 254fc94..35469a8 100644 --- a/homepage/index.html +++ b/homepage/index.html @@ -796,12 +796,9 @@ function markdownToHtml(t) { h = h.replace(/\*\*(.+?)\*\*/g, '$1'); h = h.replace(/```([\s\S]*?)```/g, '
$1
'); h = h.replace(/`([^`]+)`/g, '$1'); - h = h.replace(/ -/g, '
'); + h = h.replace(/\n/g, '
'); return h; -} - -// ===== 登录 ===== +}// ===== 登录 ===== async function handleLogin() { const u = document.getElementById('login-user').value.trim(); const p = document.getElementById('login-pass').value;