Skip to content

Commit

Permalink
image handle
Browse files Browse the repository at this point in the history
  • Loading branch information
InfantLab committed Oct 9, 2023
1 parent 8d5c7ff commit fd00721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notionHandling.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ async function fetchBlockContent(blocks, previousBlockType, numberCounter, conte
case "image":
if (block.image && block.image.external && block.image.external.url) {
// Handle external images
content += `!()[${path.basename(imagePath)}]\n\n`;
content += `![](${block.image.external.url})\n\n`;
}else if (block.image && block.image.file && block.image.file.url) {
// Handle images uploaded to Notion
const imageUrl = block.image.file.url;
Expand Down

0 comments on commit fd00721

Please sign in to comment.