Skip to content

feat: Support for multi-column block in PDF, DOCX & ODT exporters #1781

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

areknawo
Copy link
Collaborator

@areknawo areknawo commented Jun 23, 2025

This PR adds support for the multi-column block inside PDF, DOCX & ODT exporters based, using:

  • Flexbox inside PDF exporter;
  • Tables with invisible borders inside DOCX & ODT exporters;

closes #1745

Copy link

vercel bot commented Jun 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Jun 24, 2025 8:04pm
blocknote-website ✅ Ready (Inspect) Visit Preview Jun 24, 2025 8:04pm

Copy link
Collaborator

@YousefED YousefED left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Couple of small things:

  • docx: word on mac gives me a warning
  • odt: libreoffice on mac shows borders

Also, the lockfile has quite some changes / upgrade. @nperez0111 what's a good policy for this? rather exclude these from this PR?

Somewhat unrelated, I noticed the heading spacing / font size for PDF is off (see "Heading Right"). Would it be possible to add a fix for that as well?

@areknawo
Copy link
Collaborator Author

Great! Couple of small things:

  • docx: word on mac gives me a warning
  • odt: libreoffice on mac shows borders

Also, the lockfile has quite some changes / upgrade. @nperez0111 what's a good policy for this? rather exclude these from this PR?

Somewhat unrelated, I noticed the heading spacing / font size for PDF is off (see "Heading Right"). Would it be possible to add a fix for that as well?

@YousefED I've fixed the headings in PDFs with added line-height, applied the feedback and cleaned-up the lockfile. The two exporter issues need some more research/discussion

@nperez0111
Copy link
Contributor

Looks like maybe pnpm update ran honestly it is better for upkeep to update this occasionally. Especially, for our actual dependencies (the ones our consumer will depend on). No preference in when this should happen, so I'm fine with it so long as our build & tests pass it.

Copy link

pkg-pr-new bot commented Jun 24, 2025

Open in StackBlitz

@blocknote/ariakit

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/ariakit@1781

@blocknote/code-block

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/code-block@1781

@blocknote/core

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/core@1781

@blocknote/mantine

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/mantine@1781

@blocknote/react

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/react@1781

@blocknote/server-util

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/server-util@1781

@blocknote/shadcn

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/shadcn@1781

@blocknote/xl-ai

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-ai@1781

@blocknote/xl-docx-exporter

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-docx-exporter@1781

@blocknote/xl-email-exporter

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-email-exporter@1781

@blocknote/xl-multi-column

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-multi-column@1781

@blocknote/xl-odt-exporter

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-odt-exporter@1781

@blocknote/xl-pdf-exporter

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-pdf-exporter@1781

commit: 9cec7f2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PDF Export of Multi Column Block
3 participants