Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(format/html): add css option for whitespace sensitivity #5016

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

dyc3
Copy link
Contributor

@dyc3 dyc3 commented Feb 2, 2025

Summary

This adds a css option for whitespace sensitivity to the HTML formattter. This option does what strict previously did, where it considers which elements are "inline" to determine whether or not to apply whitespace sensitivity rules. The strict option now considers all elements to be whitespace sensitive, matching prettier's behavior.

related: #4927

Test Plan

CI should pass.

@github-actions github-actions bot added A-Formatter Area: formatter L-HTML Language: HTML labels Feb 2, 2025
@dyc3 dyc3 force-pushed the html-whitespace-sensitivity-css branch from 5e63a6d to 7e259eb Compare February 2, 2025 17:04
@dyc3 dyc3 requested review from a team February 2, 2025 17:14
Copy link

codspeed-hq bot commented Feb 2, 2025

CodSpeed Performance Report

Merging #5016 will not alter performance

Comparing html-whitespace-sensitivity-css (7e259eb) with next (93dda40)

Summary

✅ 94 untouched benchmarks

@dyc3 dyc3 changed the title feat(format/html): add option for whitespace sensitivity feat(format/html): add css option for whitespace sensitivity Feb 2, 2025
@dyc3 dyc3 merged commit ea84e0c into next Feb 3, 2025
13 checks passed
@dyc3 dyc3 deleted the html-whitespace-sensitivity-css branch February 3, 2025 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Formatter Area: formatter L-HTML Language: HTML
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants