khoj-ai / khoj

Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (e.g gpt, claude, gemini, llama, qwen, mistral).
https://khoj.dev
GNU Affero General Public License v3.0
16.21k stars 796 forks source link

[FIX] Obsidian picture won't render on notes after installing khoj. after remove picture renders again #816

Closed NanHeSam closed 5 months ago

NanHeSam commented 5 months ago

Describe the bug

A clear and concise description of what the bug is. Please include what you were expecting to happen vs. what actually happened. picture won't render on notes after installing khoj. after remove picture renders again

To Reproduce

Steps to reproduce the behavior:

Screenshots

If applicable, add screenshots to help explain your problem. when Khoj is enabled

image image

when Khoj is disabled and restart obsedian

image image

Platform

If self-hosted

Additional context

Add any other context about the problem here.

sabaimran commented 5 months ago

Just to clarify, these are your normal notes, not something you've pasted into the Khoj panel, right?

NanHeSam commented 5 months ago

Just to clarify, these are your normal notes, not something you've pasted into the Khoj panel, right?

Yes, it's the normal notes that i added before install Khoj

debanjum commented 5 months ago

Hey @NanHeSam, thanks for reporting the issue! Is the image local on your file system or an external link (e.g starts with http)?

NanHeSam commented 5 months ago

these pictures are all local file. but i just tried to embeded a image on the internet and it also has this behavior (showing normally when disabled Khoj but break when enable Khoj) ![[Pasted image 20240612182753.png]] ![Engelbart](https://history-computer.com/ModernComputer/Basis/images/Engelbart.jpg)

these are the format that i'm using

debanjum commented 5 months ago

Thanks for the details! I was able to reproduce the issue on my end.

I'll push a fix out in a bit. The next Khoj Obsidian plugin release should have resolved this bug

NanHeSam commented 5 months ago

awesome, thank you so much for the quick fix. I will verify that once it's release

debanjum commented 5 months ago

Hey @NanHeSam, this issue was resolved in 08c3aa496d262f6cd6df56d675e595de999000e8. Let me know if you're still facing problems loading the image?

NanHeSam commented 5 months ago

Yes, I have just test and confirmed it's resolved. Thank you!