curvenote / prosemirror-docx

Export a prosemirror document to a Microsoft Word file, using docx.
MIT License
97 stars 13 forks source link

[BUG] Tables are collapsed #12

Closed devgeni closed 2 years ago

devgeni commented 2 years ago

Rendering document with tables. But they are all collapsed. I tried fixing the source code and it didn't help:

const tableCellOpts: Mutable<ITableCellOptions> = {
  children: this.children,
  width: { size: Math.floor(100 / rowContent.childCount), type: WidthType.PERCENTAGE },
};

Example, how it looks:

image
rowanc1 commented 2 years ago

Would this be related to this: https://github.com/dolanmiu/docx/issues/1457

devgeni commented 2 years ago

Yeah, exactly this, thanks!