Closed John-Paul-R closed 1 year ago
Well, now with 1.19.1 "flattening" these text is kinda required if you don't want to get constant "server modified" in case of formatting player ones (see Styled Chat). If you want to manipulate them, using TextNodes to do that was intended solution
This set of changes to ParentNode.toText has made post-processing text emitted by PlaceholderAPI far more complex that it was in previous versions.
Consider the scenario:
Which yields:
Before this change, the output would have been:
While more verbose, this older layout is far simpler to manipulate, as inserted placeholders will always be one self-contained node, in the same shape they were provided. Right now, I'm having trouble doing things like applying styling to all text nodes except for the inserted node.