elias-sundqvist / obsidian-annotator

A plugin for reading and annotating PDFs and EPUBs in obsidian.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Annotations do not render properly. Version 0.2.11

dany-cmd opened this issue · comments

After the fix for the new obsidian version, the annotations do not show properly (for me 🤷 ).

Light Mode:
grafik
Dark Mode:
grafik

I hope you can find a fix for the issue. :)

+1

(plugin: v0.2.11 -- obsidian: v1.5.3) I'm also having the same issue, when opening a note it also give me this error:

image

This error pause obsidian until i click ok.

sigh. In those screenshots it looks like the styling was still not applied successfully for you.
Works on my machine...

@elias-sundqvist You are right. It's still a Content Security Policy issue for stylesheets.

Screenshot from the console:
2024-01-08 172906

By the way, can we just ask the Obesidian developer team to allow 'blob' type stylesheets in CSP?

Actually, with my fix those error messages still appear unfortunately . The style links that don't load are still expected to be there by hypothes.is, so I can't remove them, but I'm also applying the styling in another way.
This is what it looks like on my machine. As you can see, the error messages show up, but the annotation sidebar still looks ok.
image
Are you also using Windows and Obsidian 1.5.3?

It sounded like the blob stylesheet CSP restriction was added for security reasons and I doubt they want to remove it. I'll try to iterate on the workaround until it works as well as before, even with the CSP restriction.

Actually, I was able to reproduce your issue by reinstalling from the community plugins list now 🤔 It worked when I did a fresh install on my phone yesterday, so I assumed it would work on all devices.
But this is good. Should mean that I can identify and fix the problem.

I wish I could help, but I tried and only found out that I know nothing about web development. Love your plugin. Thank you. ♥

Could you try unziping this into your .obsidian/plugins folder and see if it helps?
obsidian-annotator.zip

It works on my computer.

1

Screenshot of the console:
2024-01-08 172906

屏幕截图 2024-01-08 112621

Same problem. I have tried this file, but unluckily it didn't work...?

Could you try unziping this into your .obsidian/plugins folder and see if it helps?你能尝试把它解压缩到你的 .obsidian/plugins 文件夹中,看看是否有帮助吗? obsidian-annotator.zip 黑曜石注释器.zip

screenshot of the console:
屏幕截图 2024-01-08 112743

Wondering what could be the problem.

@annapolaris
And to confirm, you restarted obsidian after unzipping the file?

@annapolaris And to confirm, you restarted obsidian after unzipping the file?为了确认,您在解压缩文件后重新启动了黑曜石?

Yes

Could you try unziping this into your .obsidian/plugins folder and see if it helps? obsidian-annotator.zip

(plugin: v0.2.11.? -- obsidian: v1.5.3 --- SO: windows)

Trying this fix for me worked on the render issue, but the error still persist.

image

@annapolaris And to confirm, you restarted obsidian after unzipping the file?

Worked for me without error. Thank you!

@annapolaris
I'm hoping you just did something incorrectly when installing it.
I have re-deployed 0.2.11 with the fixed version.
Can you try re-installing it from the community plugins tab?

@elias-sundqvist
Ok, I'll try re-instal it and see the result.

@annapolaris I'm hoping you just did something incorrectly when installing it.我希望您在安装它时做错了什么。 I have re-deployed 0.2.11 with the fixed version.我已经使用固定版本重新部署了 0.2.11。 Can you try re-installing it from the community plugins tab?您可以尝试从社区插件选项卡重新安装它吗?

Problem solved! Thank you very much!
屏幕截图 2024-01-08 122131

Great. I'll close this issue then. The JavaScript error popup seems annoying, but we can open a separate issue for that.