dummy embed function

This commit is contained in:
Stuti mohgaonkar 2022-03-31 13:29:02 -04:00
parent 7d3d118f20
commit 8454832108

View file

@ -29,6 +29,7 @@ async function getPageUpdates() {
}
}
async function getBlockContent(id,isChild,name) {
let pageblock = await notion.blocks.children.list({
block_id: id
@ -78,6 +79,9 @@ async function parseBlockContent(pageblock) {
if(obj.type == 'image') {
str += imageToHtml(obj[obj.type],obj.type)
}
if(obj.type == 'embed') {
str += embedToHtml(obj[obj.type],obj.type)
}
}
}
@ -182,6 +186,9 @@ function imageToHtml(typeObj) {
blockString += setClosingTags(tagStack)
return blockString
}
function embedToHtml(typeObj) {
return ''
}
/**
* HTML Tag utils
*/