From 2a0f4fd49c086d92f3f98284dd45ff019621e4df Mon Sep 17 00:00:00 2001 From: anime Date: Wed, 9 Jul 2025 13:58:48 +0800 Subject: [PATCH] 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. --- lib/notion/getPageContentText.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/notion/getPageContentText.js b/lib/notion/getPageContentText.js index e4b79b37..79fe5689 100644 --- a/lib/notion/getPageContentText.js +++ b/lib/notion/getPageContentText.js @@ -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