修复编译异常
This commit is contained in:
tangly1024
2021-12-14 19:32:06 +08:00
parent 3796b0f64a
commit 71924deefd
7 changed files with 10 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
export default function getMetadata(rawMetadata) {
export default function getMetadata (rawMetadata) {
const metadata = {
locked: rawMetadata?.format?.block_locked,
page_full_width: rawMetadata?.format?.page_full_width,

View File

@@ -5,8 +5,7 @@ const indentLevels = {
sub_sub_header: 2
}
export const getPageTableOfContents = (page,recordMap)=> {
export const getPageTableOfContents = (page, recordMap) => {
// 获取 header sub_header sub_sub_header
const toc = (page.content ?? [])
.map((blockId) => {
@@ -66,4 +65,4 @@ export const getPageTableOfContents = (page,recordMap)=> {
}
return toc
}
}