Open littlefrontender opened 4 months ago
Is there a md spec that specifies that the empty header should not be parsed? To me it seems correct that it gets parsed to an empty row tbh
Even im facing same issue every time i parse to md an additional row is getting added at the beginning of the table. am i missing something ?
const markdown: string | undefined = await editor.blocksToMarkdownLossy(editor.document);
I'm not sure there's a good way around this tbh - Markdown tables are fundamentally different from BlockNote/HTML tables as they require defining a header. Since these are all data cells there is no 1:1 mapping of the BlockNote representation vs the Markdown one, there is always going to be some misinterpretation.
Describe the bug Parsing the markdown table adds an extra row. Thus, if you store the date in markdown, it will add an empty row every time you save.
To Reproduce I use https://www.blocknotejs.org/examples/interoperability/converting-blocks-to-md or https://www.blocknotejs.org/examples/interoperability/converting-blocks-from-md
Misc