- Do you add the image inside a template, or Markdown?
- If inside Markdown, what’s the reason you’ve chosen Twig instead of Markdown’s Image Linking itself?
- Any reason why you’ve chosen to use a background-image instead of an <img> ?
Please also read Grav’s docs where the answers on your question can be found:
- Markdown’s Image linking in general and about adding attributes.
- Getting the url of media inside Twig: media:url