From 2a89027bb6c26d4164d1015f4ec036b1438ae046 Mon Sep 17 00:00:00 2001 From: anime Date: Tue, 8 Jul 2025 00:32:16 +0800 Subject: [PATCH] chore(getPageContentText): add todo comments for future improvements - Add todo comment for cleaning up more useless tags - Add todo comment for handling more block types --- lib/notion/getPageContentText.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/notion/getPageContentText.js b/lib/notion/getPageContentText.js index e636fab4..9c29cc44 100644 --- a/lib/notion/getPageContentText.js +++ b/lib/notion/getPageContentText.js @@ -24,6 +24,7 @@ export function getPageContentText(post, pageBlockMap) { return '' } + // todo: 清除更多无用标签 const removeTypeFlag = ['a', 'p', '‣'] /** @@ -67,6 +68,7 @@ export function getPageContentText(post, pageBlockMap) { function getBlockContentText(id) { const block = pageBlockMap?.block[id].value const blockType = block.type + // todo: 处理更多类型 switch (blockType) { case 'transclusion_reference': return getTransclusionReference(block)