From be5b6c3394dae09d6853ffbb56f8b4a4cae9ac1c Mon Sep 17 00:00:00 2001 From: langxm Date: Wed, 14 Oct 2026 11:00:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(M7.3):=20mdRender=20=E5=9D=97=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=E2=80=94=E2=80=94=E6=A0=87=E9=A2=98/=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=9C=A8=E7=A9=BA=E8=A1=8C=E6=9B=BF=E6=8D=A2=E5=89=8D?= =?UTF-8?q?=E5=A4=84=E7=90=86=EF=BC=8C=E9=81=BF=E5=85=8D=20\n\n=E2=86=92=20=E7=A0=B4=E5=9D=8F=E8=A1=8C=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/index.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index edecab2..ce23bf3 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1129,23 +1129,25 @@ function mdRender(md){ tbls.push(h); return '\u0000TBL'+(tbls.length-1)+'\u0000'; }); - // 2) 行内 + 引用 + 空行 + // 2) 行内 + 引用 + 标题 + 列表(块结构处理须在空行替换之前,避免 \n\n→
破坏行结构) var esc=mdInline(md); esc=esc.replace(/^> (.+)$/gm,'
$1
'); - esc=esc.replace(/\n{2,}/g,'
'); - // 2.5) 标题(一级→h3 二级→h4 三级→h5,避免层级过大) + // 标题(一级→h3 二级→h4 三级→h5,避免层级过大) esc=esc.replace(/^### (.+)$/gm,'
$1
'); esc=esc.replace(/^## (.+)$/gm,'

$1

'); esc=esc.replace(/^# (.+)$/gm,'

$1

'); - // 2.6) 无序/有序列表 →