Skip to content

Impossible to use SVG files in Markdown when astro:assets is enabled #7420

@alvinometric

Description

@alvinometric

What version of astro are you using?

2.6.4

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

Mac

What browser are you using?

Chrome

Describe the Bug

With Assets, it's not possible to use svg files in Markdown image tags (as in ![alt text](./image.svg))

This creates the following error
Screenshot 2023-06-19 at 16 05 21

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-ife6nx?file=src%2Fcontent%2Fblog%2Ffirst-post.md

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P4: importantViolate documented behavior or significantly impacts performance (priority)feat: assetsRelated to the Assets feature (scope)feat: markdownRelated to Markdown (scope)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions