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
This commit is contained in:
anime
2025-07-08 00:32:16 +08:00
parent b4ba7d8f23
commit 2a89027bb6

View File

@@ -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)