Skip to content

Conversation

@nothingelsematters
Copy link

This pull request brings colors for the calendar output.

Preview

Before:
image

After:
image
image
image

Explanation

This was achieved by collecting the colors using the regex to extract the information from style: these lines. Then using the proper colors with ANSI escape codes. It replaces only the colors it has found, therefore nothing will break if the format is changed, it will just fall back to the default color.

However, html2text was throwing errors on ANSI escape symbol \u{1b}, that is why this function is a workaround: it uses html2text on everything but this special character.

@nothingelsematters nothingelsematters changed the title feat: colorful calendar output feat: Colorful calendar output Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant