notion-to-md
notion-to-md copied to clipboard
Quote is failing with undefined
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.
Hi can you confirm if the new release fixed the issue?
Yes, I just confirmed that the new release fixed the issue.
Thanks for the quick turnaround!