Document how to set properties
jennifer-shehane opened this issue · 2 comments
jennifer-shehane commented
I got a bit confused because someone in our code base had written the below and it was failing to actually use classes.
ansi_up.ansi_to_html('txt', {
use_classes: true
})
I'm not sure if this is because we were converting from 1.3.0 and it used to be this way, but there wasn't really any clear documentation on how to set the properties from the Readme when I was trying to fix this.
I eventually found the correct usage from the tests
Line 585 in aaf041d
It'd be great to just have an example of setting properties right in the README.md
drudru commented
Can you send pull request?
@jennifer-shehane
drudru commented
Hi - please re-open if this is still an issue.