From 68d57ac0498e9e26353857fa7f4841cc2c19a39b Mon Sep 17 00:00:00 2001 From: hypercross Date: Sat, 21 Mar 2026 19:09:54 +0800 Subject: [PATCH] refactor: style --- src/App.tsx | 2 +- src/markdown/table.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 75df916..046ef15 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -43,7 +43,7 @@ const App: Component = () => {
-
+
); diff --git a/src/markdown/table.ts b/src/markdown/table.ts index c281666..0765250 100644 --- a/src/markdown/table.ts +++ b/src/markdown/table.ts @@ -48,9 +48,8 @@ export default function markedTable(): MarkedExtension { if(header.findIndex(header => header.text === 'body') < 0){ // 收集所有非 label 列的表头 - const bodyColumns = header - .filter(cell => cell.text !== 'md-table-label') - .map(cell => cell.text); + const bodyColumns = headers + .filter(cell => cell !== 'label'); // 构建 body 列的模板:**列名**:{{列名}}\n\n const bodyTemplate = bodyColumns