zernonia / vue3-notion

An unofficial Notion renderer (Vue 3) version
https://vue3-notion.vercel.app/
MIT License
134 stars 20 forks source link

Allow rendering one block only #21

Closed yacosta738 closed 2 years ago

yacosta738 commented 2 years ago

Allow rendering one block only example Images, or just todo, list. etc I tried to render this image but I can't render it

"cover": [
{
"name": "app.png",
"url": "https://www.notion.so/image/https:%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F7639505d-c659-4564-9dae-0bfd6cd92172%2Fapp.png?table=block&id=69c96a40-c579-466b-afe9-1ca7e2421cb9&cache=v2",
"rawUrl": "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/7639505d-c659-4564-9dae-0bfd6cd92172/app.png"
}
],
      <img
        v-if="article.cover && article.cover.length > 0"
        :alt="article.cover[0].name"
        class="object-cover md:w-1/3 border border-green-500 md:mr-5"
        :src="article.cover[0].url"
      />

How this library render images without the notion cookie?

zernonia commented 2 years ago

Hi @yacosta738 Sorry I don't quite understand your statement. Is there any issue with the Image Block?

yacosta738 commented 2 years ago

Sorry the Image block fail when the page is private in notion.

yacosta738 commented 2 years ago

You could close the issue.