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 request] - markdown embed settings in frontmatter #519

Closed
zsviczian opened this issue Mar 11, 2022 · 5 comments
Closed

[Feature request] - markdown embed settings in frontmatter #519

zsviczian opened this issue Mar 11, 2022 · 5 comments

Comments

@zsviczian
Copy link
Owner

specify if drawing should be embedded/exported with background color or transparent, in dark mode or light mode. would override plugin settings.

@zsviczian
Copy link
Owner Author

I will release this in 1.6.20
excalidraw-export-transparent: true
If this key is present it will override the default excalidraw embed and export setting. true == Transparent / false == with background.

excalidraw-export-dark
If this key is present it will override the default excalidraw embed and export setting. true == Dark mode / false == light mode.

excalidraw-export-svgpadding
If this key is present it will override the default excalidraw embed and export setting. This only affects export to SVG. Specify the export padding for the image.

@zsviczian
Copy link
Owner Author

Implemented in 1.6.20

@mavam
Copy link

mavam commented Nov 26, 2022

Is there method that "syncs" the export with the current Obsidian mode? When Obsidian is in light mode, I'd like to see the light mode version of the excalidraw, and when Obsidian is in dark mode, only then I'd like to set excalidraw-export-dark: true.

So what I'm actually looking for is something like excalidraw-export-dark: auto that does The Right Thing based on how my Obsidian looks.

@zsviczian
Copy link
Owner Author

excalidraw-export-dark: true overrides other settings. If you don't have this setting at the file level then the setting under Embed & Export: Excalidraw preview to match Obsidian Theme will achieve what you are looking for.

You may also want to play with settings under Display. The display settings effect how Excalidraw opens a drawing for editing. Again, the frontmatter key overrides the effect of these.

@mavam
Copy link

mavam commented Nov 26, 2022

Perfect, the settings have everything I was looking for. Thanks!

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

No branches or pull requests

2 participants