-
-
Notifications
You must be signed in to change notification settings - Fork 864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify output for nested chalk tags #365
Comments
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? |
I think this should be closed. Across all the terminal emulators that exist, with all of the different IDEs and whatnot that also try to implement this (jetbrains software, vscode, etc.) I think trying to be clever about this stuff is only going to hurt performance and break more people. Further, I've yet to come across a case where the extra few bytes were really detrimental to performance or even on-the-wire sizes (and where completely disabling styled output wasn't also an option). Thoughts @sindresorhus? |
I agree. It's simply not worth the added complexity and risk of breakage. |
Currently, nested chalk tags in a template reset and re‑specify everything, instead of just what needs to be modified for that level of nesting.
Code
Expected result:
Actual result:
See also:
The text was updated successfully, but these errors were encountered: