Astro breaks download
attribute in <a>
tags in MDX files
#13567
Labels
needs triage
Issue needs to be triaged
download
attribute in <a>
tags in MDX files
#13567
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
If this...
<a href="https://astro.build/_astro/astro-cap.jt5HlOg8_12GvP4.webp" download>Download</a>
...turns up in an MDX file processed by Astro, it is turned into this...
<a href="https://astro.build/_astro/astro-cap.jt5HlOg8_12GvP4.webp" download="true">Download</a>
Since the value of the
download
attribute determines the name of the downloaded file, the file name isastro-cap.jt5HlOg8_12GvP4.webp
in the first case buttrue.webp
in the second.I cannot reproduce this using the MDX playground, so I guess it is an Astro bug.
Potentially related PR: https://github.com/withastro/astro/pull/12584/files
What's the expected result?
Astro does not change the name of downloaded files to "true" by changing the
download
attribute in<a>
tags.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-p68my6rx?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: