Markdown preview and images from box
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.
-
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
Please sign in to leave a comment.
Comments
2 comments