mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user