aoc-cli
aoc-cli copied to clipboard
feat: Add colours to the calendar output.
I was sad that aoc-cli calendar was quite plain looking, and that motivated me to implement enough CSS support in html2text to fix this.
Currently the Cargo.toml in this PR points to an html2text git branch; if you're otherwise happy with this change I will merge the html2text branch, make a release, and make another update.
This is cool! Thank you! Yes please, make a release and we can upgrade.
I've made a release of html2text and updated Cargo.toml to point to that.
Just at that point, the calendar started displaying with extra ||||||||||||||||||, which turned out to be some animated flame implemented with position:absolute spans with CSS animation.
I've added an arguably gross hack (after adding support for display:none to html2text) to work around it.
The workaround doesn't affect the non-coloured version - depending on how you feel about it I can apply it there too.