Our poor AI model was not trained that it can use this. It knows how to type the characters to do it that work, what it lacks is any ability to see the output. It appears to understand it can successfully use Markdown, but it's understanding of if and how it can use the other options, such as color and LaTeX formatting, is often, but not always, iffy.
Each new chat sparks a new set of answers from the training data, which may be very consistent or highly varied, depending on what the training data has about that specific area of interest. If you tell it that worked, you see beautiful color and no problems at all, the code is hidden from you but works perfectly, and ask it to keep doing whatever you want using that color, it gladly will.
However, you lucked out with the 'imagine you can' command. It will imagine for you - what it might not do is 'imagine' a working method. That time it took from training data that it didn't believe would work, and happened to pick the working set.
Another time that command might get it to imagine using a non-working method.
Beautiful to see it succeed though!