Exporting note as pdf with embedded excalidraw files

So I’ve tried tinkering with the Excalidraw settings and whatever pdf exporting settings I could find in Obsidian but I couldn’t get the results that I wanted.

What I’m trying to do:
So I basically have an embedded Excalidraw file using the ![[]] format inside my notes. I’d like to share my notes with my friends by exporting them as a pdf.

I like writing my notes in dark mode because it’s easier on my eyes, but I don’t mind if the pdf is exported as a regular file that ignores the dark theme.

But what I’m trying to figure out is if there’s a way for the embedded Excalidraw drawing to export as a light themed image, so that I don’t run into the issue of the drawing being unreadable in the exported pdf file.