diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b9345184b..5c1a77e4f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 - uses: pnpm/action-setup@v3 name: Install pnpm id: pnpm-install diff --git a/.node-version b/.node-version index 860cc5000..2c022021b 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -v18.17.1 +v22.13.0 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