Display image assets in canvas markdown element

Hi,

Is it possible to display images from the loaded assets in a Canvas Markdown element?

I'd like to make the image a hyperlink and have been able to do this with externally available images. But how can I reference an image uploaded as a canvas asset?

Thanks,

William

Hey there William,

So, through a bit of string concatenation, I think this can be achieved. I was able to get it to work by using the string function to concatenate the markdown text while using the asset function to retrieve the canvas asset by id. In the expression editor, my expression for the element looks something like this:

markdown {string "[![My Image](" {asset "asset-your-asset-id-goes-here"} ")](http://elastic.co)"}

Give that a shot and let me know if that works for you.

Hi Poff,

That works great, you're a star!

Thanks,

William

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.