Skip to main content
Question

Markdown preview and images from box

  • May 22, 2025
  • 2 replies
  • 296 views

Forum|alt.badge.img

I am new to markdown but trying to figure out how to leverage it with Box.  I would like to display an image from with the file but using a Box shared link doesn't seem to work - I figure as it isn't interpreted as an image based on no real filename.  Has anyone found a workaround?  Doesn't make sense to store the image in some other storage platform.

 

thanks in advance.

2 replies

Forum|alt.badge.img

Hey ,

 

Welcome to the forum! Glad to hear you're getting started with Box!

 

If you're using shared links directly within an .md file, the shared link on its own won't render an image, because it's just a link. The way you'd "embed" an image (or any document) from Box onto a page would be by using Box Embed:

https://developer.box.com/docs/box-embed

 

It's a small change in how you construct the URL, and then wrapping the embed link in an iFrame. The one thing to keep in mind is that you shouldn't look to use Box as a CDN for pure "hosting". Using an embed widget will still show a Box header, a download button, etc.

 

Hope that helps!

 

Thanks,

Jason


Forum|alt.badge.img

My markdown file and image that I am trying to embed are in box. I have tried using the embed widget but it didn't work. Could you please share the sample code/steps showing what exactly needs to be done to render the image correctly?

 

Thanks,