-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Re-render on theme change #33
Comments
I'm not aware of an event fired by Obsidian for it and it could be possible using a Mutation Observer but that would be difficult/buggy as each typst block instance manages itself.
Not directly no for the same reasons as before. You have the option to close and reopen the page, select everything in the page then deselect (doesn't work for math blocks, inline math blocks work). Or the best catch-all is the built-in command "Reload without saving", which is basically a page refresh. Don't worry about the "without saving" part as long as you have auto-save on/save before reloading. Its not assigned to a hotkey by default but on my windows machine I have it on ctrl+r. |
I'm using the following in my shared preamble to adapt to light and dark Obsidian themes:
This works OK as long as the Obsidian theme doesn't change, but at sunrise/sunset when my Obidian switches, the rendered Typst output doesn't. Can an Obsidian plugin re-render when the theme changes? If not, is there a keyboard shortcut for "re-render all of my Typst content"?
The text was updated successfully, but these errors were encountered: