Skip to content

Commit 4ec3752

Browse files
authored
fix: allow blocks in callouts (#146)
Co-authored-by: janniks <[email protected]>
1 parent f78fb20 commit 4ec3752

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/blocks/callout.vue

+1
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

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
v-bind="pass"
2121
/>
2222
<NotionBookmark v-else-if="isType('bookmark')" v-bind="pass" />
23-
<NotionCallout v-else-if="isType('callout')" v-bind="pass" />
23+
<NotionCallout v-else-if="isType('callout')" v-bind="pass">
24+
<slot />
25+
</NotionCallout>
2426
<NotionCode v-else-if="isType('code')" v-bind="pass" />
2527
<NotionEquation v-else-if="isType('equation')" v-bind="pass" />
2628
<NotionText v-else-if="isType('text')" v-bind="pass">

0 commit comments

Comments
 (0)