mirror of
https://github.com/nature-of-code/noc-book-2
synced 2024-11-17 07:49:05 +01:00
dummy embed function
This commit is contained in:
parent
7d3d118f20
commit
8454832108
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue