Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Markdown: Displaying figures in collapsed section

Tags:

markdown

When I want to include a collapsed section in markdown as follows

<details>
  <summary>Click to expand!</summary>
  
  I'd like to show an image here, for like this:

<center>![](example.jpg)</center>

</details>

However the image does not appear until I remove the <details> part again. How can I achieve what I want?

like image 317
cheesus Avatar asked Nov 07 '25 12:11

cheesus


1 Answers

You can achieve it. Firstly you need to add four spaces before all those tages and newlines before and after the block. Secondly you can add image differently:


    <details>
    <summary>click to expand</summary>
    <IMG src="blob:https://dev.azure.com/..."  alt="image.png"/>
    </details>

like image 56
donatasj87 Avatar answered Nov 09 '25 10:11

donatasj87



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!