# Display image assets in canvas markdown element

**URL:** <https://discuss.elastic.co/t/display-image-assets-in-canvas-markdown-element/253113>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [October 23, 2020, 9:52am UTC](https://discuss.elastic.co/t/display-image-assets-in-canvas-markdown-element/253113 "2020-10-23T09:52:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wmcleod](https://avatars.discourse-cdn.com/v4/letter/w/ebca7d/32.png) [@wmcleod](https://discuss.elastic.co/u/wmcleod)\
**Post date:** [October 23, 2020, 9:52am UTC](https://discuss.elastic.co/t/display-image-assets-in-canvas-markdown-element/253113/1 "2020-10-23T09:52:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![poff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/poff/32/81795_2.png) [@poff](https://discuss.elastic.co/u/poff)\
**Post date:** [October 29, 2020, 8:16pm UTC](https://discuss.elastic.co/t/display-image-assets-in-canvas-markdown-element/253113/2 "2020-10-29T20:16:03Z")

</div>

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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![wmcleod](https://avatars.discourse-cdn.com/v4/letter/w/ebca7d/32.png) [@wmcleod](https://discuss.elastic.co/u/wmcleod)\
**Post date:** [October 29, 2020, 8:34pm UTC](https://discuss.elastic.co/t/display-image-assets-in-canvas-markdown-element/253113/3 "2020-10-29T20:34:36Z")

</div>

Hi Poff,

That works great, you're a star!

Thanks,

William

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 26, 2020, 8:34pm UTC](https://discuss.elastic.co/t/display-image-assets-in-canvas-markdown-element/253113/4 "2020-11-26T20:34:52Z")

</div>

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