babel-plugin-captains-log icon indicating copy to clipboard operation
babel-plugin-captains-log copied to clipboard

Allow css styling in template literals

Open mqklin opened this issue 2 years ago • 2 comments

For some reason, this code doesn't work:

console.log(`%c ${123}`, 'color:red');

(it logs %c 123 color:red) But if I turn-off the plugin, it works as expected.

mqklin avatar Jun 30 '23 08:06 mqklin

I was not aware of the string substitutions within console functions. This is pretty sweet. Are you open to attempting to put in a fix for this?

kwelch avatar Jun 30 '23 15:06 kwelch

I'll try to take a look this week.

mqklin avatar Jul 03 '23 06:07 mqklin