diff --git a/src/components/notion-renderer.vue b/src/components/notion-renderer.vue index 176e706..1373b79 100644 --- a/src/components/notion-renderer.vue +++ b/src/components/notion-renderer.vue @@ -1,7 +1,7 @@ <template> <NotionBlock v-bind="pass" v-if="blockMap && value"> <NotionRenderer v-for="(contentId, contentIndex) in value.content" v-bind="pass" :key="contentId" :level="level + 1" - :content-id="contentId" :content-index="contentIndex" /> + :content-id="contentId" :id="uuidToId(contentId)" :content-index="contentIndex" /> </NotionBlock> </template> @@ -17,6 +17,11 @@ export default { components: { NotionBlock, }, + methods: { + uuidToId(uuid){ + return uuid.replaceAll('-',''); + }, + }, props: { blockMap: [Object], contentId: String,