From 146b26f8e4d7444281058066b937d82b8464c686 Mon Sep 17 00:00:00 2001 From: naive231 Date: Tue, 19 Nov 2024 09:16:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=9C=A8=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=88=97=E8=A1=A8=E7=B1=BB=E5=9E=8B=E6=97=B6=E9=87=8D?= =?UTF-8?q?=E7=BD=AE=E8=AE=A1=E6=95=B0=E5=99=A8=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E7=A1=AE=E4=BF=9D=E4=BB=BB=E5=8A=A1=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A1=B9=E7=9A=84=E7=BC=96=E5=8F=B7=E8=83=BD=E5=A4=9F=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E5=BB=B6=E7=BB=AD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/main.ts b/main.ts index e6215d5..8265984 100644 --- a/main.ts +++ b/main.ts @@ -111,20 +111,10 @@ function processLineBlock(source: string): string { } if (isListItem) { - // Handle list type change - if (listType !== previousListType && indentLevel === 0) { - // Reset counters when switching list types at top level - listCounters = []; - prevIndentLevel = 0; - } - previousListType = listType; - // Handle indent level if (indentLevel > prevIndentLevel) { - // Entering new sublist level listCounters.push(0); } else if (indentLevel < prevIndentLevel) { - // Exiting to higher level(s) while (listCounters.length > indentLevel) { listCounters.pop(); }