vscode-terosHDL icon indicating copy to clipboard operation
vscode-terosHDL copied to clipboard

Add the option to insert images in the Module description.

Open DRubioG opened this issue 3 months ago • 3 comments

I think it could be very interesting to have a label like @image="<path>" and this label inserts an image in the Module document.

DRubioG avatar Sep 19 '25 17:09 DRubioG

@DRubioG Use markdown syntax inside a comment:

--!
--! Inserting an image with markdown syntax
--! ![Alt text](https://terostechnology.github.io/terosHDLdoc/img/logo_teroshdl.png)
--!

gmartina avatar Oct 13 '25 17:10 gmartina

I think this option only works with online images. With local images I only see the crash image symbol.

Image

Code:

--! ![test](./test.png)

--! ![test2](https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/PNG_transparency_demonstration_1.png/330px-PNG_transparency_demonstration_1.png)

DRubioG avatar Oct 13 '25 18:10 DRubioG

@DRubioG This won’t function in the webview without a more substantial update. You can instead export the markdown and move the image to the appropriate path.

gmartina avatar Oct 14 '25 16:10 gmartina