obsidian-desmos
obsidian-desmos copied to clipboard
Snippet to center graphs doesn't work
Describe the bug
Snippet to center graphs doesn't work. It seems that the rendered svg has no longer desmos-graph
class, so the snippet has no effect.
Expected behavior Centered graphs
Desktop (please complete the following information):
- OS: [e.g. Windows]
- Obsidian Version: 1.1.16
- Plugin Version: 0.6.4
Are you using the one listed in https://github.com/Nigecat/obsidian-desmos#custom-styling?
Since that seems to work fine for me with the current version (0.6.4):
Off:
On:
Could you include an image of what happens on your end and an example which causes it?
Yes I use the snippet you suggested. I have to things to report. I used a vanilla vault to test the snippet with internet access.
- the graph is centered in reading mode but not in editing mode.
- if I edit the desmos code without triggering the rendering of a new plot (for example I type a random key and then delete it; or I modify the code so that I get the code of an already cached plot), the plot in the reading mode moves to left.
I hope the description of the issue is clear.