You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Call the builder with every node when the output is escaped #2174
docs/syntax.md says the builder is called with every node's string and node instance, and that start and end mark where a node's part opens and closes. A stylesheet without <style, </style or <!-- is unaffected, so the loss only reaches the files where the escaping happens to fire.
We hit this in stylelint-stylistic: max-empty-lines reads each node's raws out of the pieces the builder is given, to know where a neighboring rule's fixes land, and behind such an escape it read none of them.
Is this intended? If not, could the escaped text be cut back into the pieces it was built from and handed over one by one? Escaping only replaces < with the three characters longer \3c , so every piece survives around its own nodes.
Activity
ai commentedon Oct 18, 2026
Can you send PR with this fix?