adamschwartz / log

Console.log with style.
https://adamschwartz.co/log
MIT License
3.01k stars 140 forks source link

Embedded styles don't work #33

Closed beeftornado closed 8 years ago

beeftornado commented 9 years ago

If you have styles within styles it doesn't render properly.

eg. log('_[c="color:red"]ERROR[c]_') doesn't make the font bold and red as expected. Also doesn't work if you swap the order.

Workaround, log('[c="color:red;font-weight:bold"]ERROR[c]')

adamschwartz commented 8 years ago

Willing to accept a PR if someone can solve this without needing to bring in a full Markdown parser.

adamschwartz commented 8 years ago

Closing for now as works-as-designed. Will re-open if someone can show a test case with it working on a range of inputs.