notion-to-md icon indicating copy to clipboard operation
notion-to-md copied to clipboard

Quote is failing with undefined

Open mdnorman opened this issue 6 months ago • 2 comments

We've run into an issue with the quote type for a particular document:

I've updated to the latest version (3.1.8)

Here is the error:

TypeError: Cannot read properties of undefined (reading 'split')
    at <anonymous> (/node_modules/.pnpm/[email protected][email protected]/node_modules/notion-to-md/src/notion-to-md.ts:146:14)
    at Array.forEach (<anonymous>)
    at NotionToMarkdown.toMarkdownString (/node_modules/.pnpm/[email protected][email protected]/node_modules/notion-to-md/src/notion-to-md.ts:60:14)
    ...

This is because mdstr.parent is undefined for whatever reason.

It's happening because a paragraph is inside the quote. Note: the only way I can find to create a paragraph inside a quote is to write a line of text (paragraph) outside the quote and then drag it into the quote block.

mdnorman avatar May 12 '25 15:05 mdnorman

Hi can you confirm if the new release fixed the issue?

souvikinator avatar May 13 '25 05:05 souvikinator

Yes, I just confirmed that the new release fixed the issue.

Thanks for the quick turnaround!

mdnorman avatar May 13 '25 13:05 mdnorman