Skip to content

Commit

Permalink
fix: allow blocks in callouts
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks committed Sep 5, 2024
1 parent 9d32f1f commit e101bde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/blocks/callout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
</div>
<div class="notion-callout-text">
<NotionTextRenderer :text="title" v-bind="pass" />
<slot />
</div>
</div>
</template>
Expand Down
4 changes: 3 additions & 1 deletion src/components/block.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
</div>
<NotionHeader v-else-if="isType(['header', 'sub_header', 'sub_sub_header'])" v-bind="pass" />
<NotionBookmark v-else-if="isType('bookmark')" v-bind="pass" />
<NotionCallout v-else-if="isType('callout')" v-bind="pass" />
<NotionCallout v-else-if="isType('callout')" v-bind="pass">
<slot />
</NotionCallout>
<NotionCode v-else-if="isType('code')" v-bind="pass" />
<NotionEquation v-else-if="isType('equation')" v-bind="pass" />
<NotionText v-else-if="isType('text')" v-bind="pass" />
Expand Down

0 comments on commit e101bde

Please sign in to comment.