refactor: style
This commit is contained in:
parent
fbdb427532
commit
68d57ac049
|
|
@ -43,7 +43,7 @@ const App: Component = () => {
|
|||
</div>
|
||||
</header>
|
||||
<main class="max-w-4xl mx-auto px-4 py-8 pt-20 md:ml-64 2xl:ml-auto flex justify-center items-center">
|
||||
<Article class="prose-sm max-w-full xl:max-w-none flex-1" src={currentPath()} />
|
||||
<Article class="prose-sm max-w-full flex-1" src={currentPath()} />
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue