Currently, nested chalk tags in聽a聽template reset and聽re鈥憇pecify everything, instead of聽just what needs to聽be聽modified for聽that level of聽nesting.
chalk`{red red {bold red & bold } red again }`
\e[31m red \e[1m red & bold \e[22m red again \e[39m
\e[31m red \e[39m\e[31m\e[1m red & bold \e[22m\e[39m\e[31m red again \e[39m
Yes, that would be ideal, but it's not a big problem as the visual output is still correct. PR welcome :)
There's somewhat a reason for this; dim and bold have the same exit code and thus added some complexity to the implementation IIRC.
Be careful that this doesn't slow everything down.
@sindresorhus @Qix- Is the issue still open?
猬囷笍

猬嗭笍
Most helpful comment
猬囷笍
猬嗭笍