KyoriPowered / adventure

A user-interface library, formerly known as text, for Minecraft: Java Edition
https://docs.advntr.dev/
MIT License
682 stars 106 forks source link

Provide a way to retain tags such as <rainbow> when serializing #872

Open Antonio32A opened 1 year ago

Antonio32A commented 1 year ago

Attempting to serialize components which have rainbow or gradient tags results in the tag getting converted to a lot of individual color tags (see below). It would be useful to keep the rainbow tags when e.g. the user wants to convert from non-strict to strict format.

Original text: <rainbow>test</rainbow> Expected output once deserialized and serialized back: <rainbow>test</rainbow> Actual output: <#f3801f>t</#f3801f><#4bff2c>e</#4bff2c><#0c80e0>s</#0c80e0><#b401d3>t</#b401d3>

zml2008 commented 6 months ago

See #842