Closed twu13 closed 3 years ago
Are you able to show the image in a regular <img>
tag in a minimal shiny app? That's the first step you should take to try to come up with a minimal reproducible example
@daattali Thanks for responding! Yes I can get the images to show up using a basic tag. I believe this issue has to do with the fact that I'm using runtime: shiny for my markdown (I need it for shiny capabilities), because when I remove that and try to render a regular Rmd html file it works as expected.
Two things I observed:
When I run the markdown with 'runtime: shiny` I'm seeing an "embedded null" error...
This happens even if I comment out the code entirely (I have to delete it to get past it).
To overcome the above issue, I tried to edit the tags in the "content" column to point to a specific image (e.g. flags/argentina.png) and it still can't seem find them, but putting a regular
tag elsewhere in the markdown works just fine.
I have included a reproduceable example (with comments in the code): flag_example.zip
Oh this is a Rmd file, not a shiny app. To be honest shin within rmd is a different beast and I don't know how it works too well. I just tried running your example, and it looks like the argentina flag that renders on the page ends up getting a file path of file125c38749a2_files/flags/argentina.png
. Shiny is doing with the image paths somewhere, I don't know what it's doing. I'm afraid I can't help with this.
This feels like an rmd issue, not a timevis issue, so closing this
I am trying to replicate the exact example in the below code which uses custom HTML content to add images to the boxes. I have a folder in the same directory as my markdown file called "flags" and all of the png files in there, but for some reason when I render the HTML document the images do not show up (can't resolve the path). Is there some special configuration needed here?
Thanks!