#Images in Markdown (.md) files get wrapped in paragraph (<p>) tags when rendered to HTML

3 messages · Page 1 of 1 (latest)

hallow trail
#

I've been able to avoid this wrapping by using HTML <img> tags in the Markdown files, but this isn't ideal.

Is there any way to tell Astro to not wrap images in <p> tags, or to at least wrap them in <div>s, which is semantically more appropriate?

tame pier
hallow trail
#

Thank you, I will look into it 👍