-
-
Notifications
You must be signed in to change notification settings - Fork 492
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
feat: Code block support in PDF & DOCX exporters #1367
Conversation
areknawo
commented
Jan 13, 2025
- Support for code block in PDF & DOCX exporters as a separate block with a monospace font;
- Use Geist Mono font for code in PDF & DOCX exports;
- Update examples for PDF & DOCX exporters to include code blocks;
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
examples/05-interoperability/06-converting-blocks-to-docx/App.tsx
Outdated
Show resolved
Hide resolved
// text: block..type + " not implemented", | ||
// }), | ||
// ], | ||
run: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it might be nicer to define this style externally (in styles.xml). Optional if you want to do this for this PR, but it's good to know the file exists and how it works when you start working on other exporter related PRs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved everything except shading
- it seems to apply differently from <w:shd/>
in styles.xml
(doesn't result in uniform background). I might be missing something here though, so let me know if you have any insight into that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!