Ok so! I have a container holding elements, doesn't matter what kind. At the start and end (currently) there are brackets. Created using before/after pseudo elements. What I want is, whenever there is a wrap like seen on the image, the brackets still hold everything in between so like instead of
[A, B, CD, E]
[A, B, CD, E]
I want it to be
[A, B, C˥[D, E ˩
[A, B, C˥[D, E ˩
Without it being 2 brackets but 1 long bracket, I couldn't find a good ascii character for open brackets.
Here is a quick demo that pretty much shows the whole thing!