Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Colorful calendar output #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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