From 253fcc3f3249a8b290d3ce6cdf61196d6827cb3b Mon Sep 17 00:00:00 2001 From: Rob Gordon Date: Sun, 12 Jan 2025 10:29:55 -0600 Subject: [PATCH] Fix notion lib issues --- api/_lib/_notion.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/_lib/_notion.ts b/api/_lib/_notion.ts index efcdac451..1c62fcf5c 100644 --- a/api/_lib/_notion.ts +++ b/api/_lib/_notion.ts @@ -66,6 +66,7 @@ export async function getPostHtmlFromId(id: string) { type: "html", parent: videoHtml, children: [], + blockId: block.blockId, }; } } @@ -73,7 +74,7 @@ export async function getPostHtmlFromId(id: string) { }); const mdString = n2m.toMarkdownString(mdblocks); - const html = marked(mdString); + const html = marked(mdString.parent); return html; } @@ -95,6 +96,7 @@ Takes a block in the format and returns an HTML