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

preamble.sty not loading on start; but loads on toggling safe mode #19

Open
tyjyang opened this issue Apr 6, 2022 · 9 comments
Open

Comments

@tyjyang
Copy link

tyjyang commented Apr 6, 2022

Hi I am on obsidian Desktop v0.14.2, and preamble.sty doesn't load on start.

What would make it work is if I turn on safe mode, and then turn it off. At this point all my custom latex commands would work again. However, if I then close obsidian and re-open it, those commands would be in red again.

I think this is symptomatic of errors on a deep level, could you help me with this? Thanks!

@xldenis
Copy link
Collaborator

xldenis commented Apr 8, 2022

Hmm, could you check the console for any error messages?

@MinusGix
Copy link
Contributor

MinusGix commented Apr 9, 2022

If you go to a line with red latex and then insert a character then remove it (to force it to refresh the rendering), does it work? If it does, then it might be that it renders it before it loads the plugin.

@tyjyang tyjyang closed this as completed Apr 11, 2022
@tyjyang tyjyang reopened this Apr 11, 2022
@tyjyang
Copy link
Author

tyjyang commented Apr 11, 2022

Hi guys, thanks for the replies, and sorry for not getting back to you earlier, some mishap in my email notifications.

Indeed, there is some error message from the console:
image

And I checked @MinusGix 's suggestion, edit & re-render doesn't solve the issue.

@xldenis
Copy link
Collaborator

xldenis commented Apr 11, 2022

Oh fun... amsmath is missing? Do you think you could try re-installing obsidian?

@tyjyang
Copy link
Author

tyjyang commented Apr 11, 2022

Hi @xldenis , I tried to reinstall obsidian, now the version is v0.14.5, but the symptom persists, and I checked the console, it is indeed the same error:
image

EDIT:

  • enable & disable safe mode still works, no idea why

@tyjyang
Copy link
Author

tyjyang commented Apr 23, 2022

I found that this symptom is consistent throughout my Windows desktop, iPad, and iPhone.

@jonathanbeardsley
Copy link

I'm also (sort of) having the same problem, in that it's simply not loading. Toggling safe mode and reinstalling Obsidian don't seem to work. Using v 0.14.15 on a Mac. Has it simply stopped working because of an update or anything? I've also tried it with the legacy editor.

@xldenis
Copy link
Collaborator

xldenis commented Jun 21, 2022

If someone would like to take this plugin over I will happily give it. I don't enjoy attempting to follow Obsidian's API changes which break the hack which enables this.

@MinusGix
Copy link
Contributor

MinusGix commented Jun 21, 2022

The extension still works for me on 0.14.15 on Linux, so I wonder if there's some differences between platforms. Providing any error logs (Ctrl + Shift + I on linux) would be helpful.

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

4 participants