mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-19 07:26:50 +00:00
feature:
修复编译异常
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user