Using HTML in hugo markdown / Image galleries

Hello! I have a whole bunch of pictures that I want to include in a page, but as a “photo gallery”-type view. I wanted to accomplish this by using CSS Grid, but I’m not able to enclose all the images in a parent HTML element to do this.

If I have this code in an MD file, for example, the images inside don’t show up.

<div>
  ![Some alt text](/path/to/img.png)
</div>

View source in browser. Do you see a comment instead of the <div> element?