mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
fix: prevent processing content for page type blocks
- Skip content processing when block type is 'page' - Update debug log message for content text concatenation
This commit is contained in:
@@ -14,7 +14,7 @@ export function getPageContentText(post, pageBlockMap) {
|
||||
}
|
||||
const textArray = properties['title'] || properties['caption']
|
||||
result.push(getTextArray(textArray))
|
||||
if (block['content']?.length > 0) {
|
||||
if (block.type !== 'page' && block['content']?.length > 0) {
|
||||
for (const blockContent of block.content) {
|
||||
result.push(getBlockContentText(blockContent))
|
||||
}
|
||||
@@ -95,6 +95,6 @@ export function getPageContentText(post, pageBlockMap) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// console.log(contentTextList.join(''))
|
||||
console.log('开始', contentTextList.join(''), '结束')
|
||||
return contentTextList.join('')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user