Meaningful whitespace collapsed with compressHTML: true
#852
Labels
- P4: important
Violate documented behavior or significantly improves performance (priority)
What version of
@astrojs/compiler
are you using?1.8.1
What package manager are you using?
npm
What operating system are you using?
macOS / StackBlitz
Describe the Bug
Certain instances of inline whitespace appear to be collapsed with an impact on the visual result when using Astro’s new
compressHTML: true
config option.Specifically this seems to be the case with expressions (e.g.
{'string'}
) and inline elements (e.g.<span>
or<time>
):Input
Actual output
Expected output
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-obrxxu?file=src%2Fpages%2Findex.astro
The text was updated successfully, but these errors were encountered: