Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow for unopinionated conversion #31

Open
GuySartorelli opened this issue Aug 27, 2024 · 0 comments
Open

Allow for unopinionated conversion #31

GuySartorelli opened this issue Aug 27, 2024 · 0 comments

Comments

@GuySartorelli
Copy link

Currently the conversion is opinionated - it enforces that the output must have some theme-specified foreground colour and some theme-specified background colour, even if the ANSI doesn't specify one.

Ideally for my use case it would only convert the specific ANSI formatting into HTML styles - and anywhere that ANSI hasn't specified formatting will be left to whatever the default CSS on the page dictates it should be.

This allows me to use OutputInterface to provide rich formatting when I need it (and have that converted to HTML with CSS), but the default output still respects the styling inherited from the page I'm outputting to.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant