Skip to content

Formatter: Add support for Content Preserving Elements#438

Merged
marcoroth merged 1 commit intomainfrom
content-preserving-elements
Aug 25, 2025
Merged

Formatter: Add support for Content Preserving Elements#438
marcoroth merged 1 commit intomainfrom
content-preserving-elements

Conversation

@marcoroth
Copy link
Owner

@marcoroth marcoroth commented Aug 25, 2025

This pull request improves the way the formatter handles Content Preserving Elements like <pre>, <textarea>, <style> and <script>.

These elements have different-requirements when it comes to whitespace, so for now, we just keep them as-is so we don't mis- or over-format them and break some of the application logic.

This also partially addresses #436.

@marcoroth marcoroth added bug Something isn't working formatter labels Aug 25, 2025
@marcoroth marcoroth merged commit c1ba475 into main Aug 25, 2025
7 checks passed
@marcoroth marcoroth deleted the content-preserving-elements branch August 25, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working formatter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant