-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Markdown images missing alt attributes #16621
Copy link
Copy link
Closed
Labels
- P3: minor bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)feat: markdownRelated to Markdown (scope)Related to Markdown (scope)pkg: astroRelated to the core `astro` package (scope)Related to the core `astro` package (scope)
Metadata
Metadata
Assignees
Labels
- P3: minor bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)feat: markdownRelated to Markdown (scope)Related to Markdown (scope)pkg: astroRelated to the core `astro` package (scope)Related to the core `astro` package (scope)
Type
Fields
Give feedbackNo fields configured for issues without a type.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I have the following line in
src/content/blog/markdown-style-guide.md(line 42):I would expect that to output an
imgtag with an emptyaltattribute (alt=""), but it actually doesn't output anyaltattribute at all -- it's completely missing from theimgtag.I found this issue but it appears to have been resolved back in 2022, so it looks like the issue has resurfaced.
What's the expected result?
in markdown content should render animgtag withalt="".Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-prquajd2?file=src%2Fcontent%2Fblog%2Fmarkdown-style-guide.md
Participation