feat(getPageContentText): ensure proper spacing in concatenated text content

Modify getPageContentText.js to use space delimiter when joining text
blocks instead of empty string. This change affects three functions:
getPageContentText, getTextArray, and getBlockContentText to improve
text readability and proper spacing between concatenated content blocks.
This commit is contained in:
anime
2025-07-09 13:58:48 +08:00
parent 72d64d7184
commit 2a0f4fd49c

View File

@@ -19,7 +19,7 @@ export function getPageContentText(post, pageBlockMap) {
result.push(getBlockContentText(blockContent))
}
}
return result.join('')
return result.join(' ')
}
function getTextArray(textArray) {
@@ -40,7 +40,7 @@ export function getPageContentText(post, pageBlockMap) {
result.push(getBlockContentText(blockContent))
}
}
return result.join('')
return result.join(' ')
}
function getBlockContentText(id) {
@@ -80,7 +80,7 @@ export function getPageContentText(post, pageBlockMap) {
}
}
}
return result.join('')
return result.join(' ')
}
const postId = post.id