Skip to content
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

feature: odt exporter #1331

Merged
merged 45 commits into from
Mar 4, 2025
Merged

feature: odt exporter #1331

merged 45 commits into from
Mar 4, 2025

Conversation

YousefED
Copy link
Collaborator

@YousefED YousefED commented Dec 18, 2024

This PR adds an ODT exporter, with support for a customizable header & footer.

Copy link

vercel bot commented Dec 18, 2024

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

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Mar 4, 2025 0:50am
blocknote-website ✅ Ready (Inspect) Visit Preview Mar 4, 2025 0:50am

@YousefED YousefED marked this pull request as ready for review March 3, 2025 11:58
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd use image-meta which is a much more lightweight lib, and is in plain JS (sharp is natively compiled I think). This would also work in both browsers & node

https://github.com/unjs/image-meta

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks. Nice to get rid of sharp.

  • I've extracted the util file to @shared (as it was also used for docx)
  • changed sharp to image-meta
  • only import image-meta on node / vitest, as browser side it's not necessary (we use createImageBitmap)

@nperez0111
Copy link
Contributor

The export looks really good. Good job here @areknawo

@nperez0111 nperez0111 merged commit 2ef89c7 into main Mar 4, 2025
6 of 7 checks passed
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.

3 participants