[x] Changes match the documented (not just the implemented) behavior of Shopify.
Instead of keeping trimming flags on all tokens, introduce explicit trim tokens: TrimLeftTokenType and TrimRightTokenType, trimWriter configuration is then triggere via (n *TrimNode) render.
Checklist
make test
passes.make lint
passes.Instead of keeping trimming flags on all tokens, introduce explicit trim tokens:
TrimLeftTokenType
andTrimRightTokenType
,trimWriter
configuration is then triggere via(n *TrimNode) render
.