fix: allow configuring the email body's styles#2182
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@blocknote/ariakit
@blocknote/code-block
@blocknote/core
@blocknote/mantine
@blocknote/react
@blocknote/server-util
@blocknote/shadcn
@blocknote/xl-ai
@blocknote/xl-docx-exporter
@blocknote/xl-email-exporter
@blocknote/xl-multi-column
@blocknote/xl-odt-exporter
@blocknote/xl-pdf-exporter
commit: |
| options?.bodyStyles ?? { | ||
| fontFamily: | ||
| "'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif", | ||
| fontSize: "16px", | ||
| lineHeight: "1.5", | ||
| color: "#333", | ||
| } |
There was a problem hiding this comment.
Would be nice to align the defaults in the mdx with the default here. For me these values in the export were a mystery before I found them here.
There was a problem hiding this comment.
@noudadrichem sorry I don't completely understand by "the defaults in the mdx"
Do you mean the defaults for the individual blocks in the export like here:
Or, do you mean something else entirely. There isn't any mdx hereThere was a problem hiding this comment.
In the docs maybe? Like a callout that if not specified it'd be these values?
There was a problem hiding this comment.
Updated the docs
There was a problem hiding this comment.
I meant the docs indeed: docs/content/docs/features/export/email.mdx
Summary
This allows customize the React email exporter's body element (which we add some default styles to)
Rationale
This allows customizing things like the email's fontSize
Changes
expose an additional option to the conversion function
Impact
Testing
Added a snap with using something other than the defaults
Screenshots/Video
Checklist
Additional Notes