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;