refactor: style
This commit is contained in:
parent
fbdb427532
commit
68d57ac049
|
|
@ -43,7 +43,7 @@ const App: Component = () => {
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</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">
|
<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>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -48,9 +48,8 @@ export default function markedTable(): MarkedExtension {
|
||||||
|
|
||||||
if(header.findIndex(header => header.text === 'body') < 0){
|
if(header.findIndex(header => header.text === 'body') < 0){
|
||||||
// 收集所有非 label 列的表头
|
// 收集所有非 label 列的表头
|
||||||
const bodyColumns = header
|
const bodyColumns = headers
|
||||||
.filter(cell => cell.text !== 'md-table-label')
|
.filter(cell => cell !== 'label');
|
||||||
.map(cell => cell.text);
|
|
||||||
|
|
||||||
// 构建 body 列的模板:**列名**:{{列名}}\n\n
|
// 构建 body 列的模板:**列名**:{{列名}}\n\n
|
||||||
const bodyTemplate = bodyColumns
|
const bodyTemplate = bodyColumns
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue