Skip to content

Commit e101bde

Browse files
committed
fix: allow blocks in callouts
1 parent 9d32f1f commit e101bde

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/blocks/callout.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
</div>
66
<div class="notion-callout-text">
77
<NotionTextRenderer :text="title" v-bind="pass" />
8+
<slot />
89
</div>
910
</div>
1011
</template>

src/components/block.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
</div>
88
<NotionHeader v-else-if="isType(['header', 'sub_header', 'sub_sub_header'])" v-bind="pass" />
99
<NotionBookmark v-else-if="isType('bookmark')" v-bind="pass" />
10-
<NotionCallout v-else-if="isType('callout')" v-bind="pass" />
10+
<NotionCallout v-else-if="isType('callout')" v-bind="pass">
11+
<slot />
12+
</NotionCallout>
1113
<NotionCode v-else-if="isType('code')" v-bind="pass" />
1214
<NotionEquation v-else-if="isType('equation')" v-bind="pass" />
1315
<NotionText v-else-if="isType('text')" v-bind="pass" />

0 commit comments

Comments
 (0)