Skip to content

feature: odt exporter #1331

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

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 1:26pm
blocknote-website ✅ Ready (Inspect) Visit Preview Mar 4, 2025 1:26pm

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

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