Files
test-repo/changelog_unreleased/javascript/18352.md
T
c60eca2415 Fix embed html attribute print (#18352)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-11-28 21:40:34 +08:00

354 B

Preserve quote for embedded HTML attribute values (#18352 by @kovsu)

// Input
const html = /* HTML */ ` <div class="${styles.banner}"></div> `;

// Prettier stable
const html = /* HTML */ ` <div class=${styles.banner}></div> `;

// Prettier main
const html = /* HTML */ ` <div class="${styles.banner}"></div> `;