refactor: style
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user