I’m trying to insert an image into a table cell I’ve made in a note with html. It was working just fine previously (first image), unfortunately i renamed the file which broke it—and I haven’t been able to recreate it since.
I’ve tried both markdown and standard html , with internal links, obsidian links, direct upload from my gallery again. Each time it creates an image file but doesn’t display in the note. Markdown works fine outside of the html.
results in that “?” box.
I’d understand if I have to use an external link in the html, because markdown isn’t supposed to work within html i don’t think, but the fact that it did work before is driving me crazy … and I’d love to keep track of all the images I use in my vault. Grrr help
additional stuff:
- i have moved all the related files to the root and tried there
- NO internal links work in the table
I don’t know the answer but doesn’t the Obsidian URI need a clicking action for it to work? Is it supposed to work “passively” as such?
Why not use normal path for the image?
I don’t know what you mean by “clicking” unfortunately. I have tapped the “?” box and it just previews it in the same state.
I’m assuming by “normal path” you mean using an external url? I don’t think I can properly find the directories on ios. Using an external url works fine and will be what I go with if it turns out internal won’t work. But the fact that I had it working with an internal url previously makes me think there must be some obscure order of operations I found, but didn’t note as I thought it was normal behaviour, and would be much MUCH easier to manage on mobile.
You don’t want to click. That’s the point. As far as I know Obsidian URI requires an explicit triggering action to work. This means they will not probably work as inline links in markdown unless clicked or activated by an external script. I may be wrong.
I’ve seen a similar topic:
Yeah, you want <img src="assets/ofuro.jpg">
, for example.
I don’t have the colspan set up in the last example, but this is working on my end:
i’m sorry, i’m still confused… is a plugin like the previous reply mentioned required? This still isn’t working for me inside or outside of the table, assuming the “md file” is referring to the “vault” on mobile,
if a plugin is required, is there an alternative that can be found in the repository, or will i have to find a manual workaround?
thank you so much ;;
after some fiddling I’ve gotten it to display outside of reading mode with this:
is there something i can do to get it to display in both states?
In two posts you mention two different paths to the image. Are you sure you got it right?
For markdown, the paths have to be relative to the root of your vault. In fact you don’t need a path, you can just use the filename minus extension. ![[My-image]].
However markdown won’t render inside hmtl tags…so yes, you must use img tag. But here I am not sure if the paths have to be absolute paths on your hard disk or still relative to your vault. I think this is the area where you have an issue…