Skip to content

Preserve content inside style/script tags since gotmplfmt is not a JS/CSS formatter#35

Open
jmmaranan wants to merge 3 commits intomiekg:mainfrom
jmmaranan:main
Open

Preserve content inside style/script tags since gotmplfmt is not a JS/CSS formatter#35
jmmaranan wants to merge 3 commits intomiekg:mainfrom
jmmaranan:main

Conversation

@jmmaranan
Copy link
Copy Markdown
Contributor

#33 did not work so well so better left the formatting to another formatter, e.g. prettier.

@jmmaranan jmmaranan marked this pull request as draft March 12, 2026 20:56
…ntation

- Add RawText and RawTagClose token subtypes
- Track when lexer is inside style/script tags
- Preserve raw content exactly as written for idempotent formatting
- Add tests for style and script tag handling
@jmmaranan jmmaranan marked this pull request as ready for review March 12, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant