#Images in Markdown (.md) files get wrapped in paragraph (<p>) tags when rendered to HTML
3 messages · Page 1 of 1 (latest)
You can try using this plugin https://github.com/remarkjs/remark-unwrap-images
Thank you, I will look into it 👍
3 messages · Page 1 of 1 (latest)
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?
You can try using this plugin https://github.com/remarkjs/remark-unwrap-images
Thank you, I will look into it 👍