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

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.

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

No branches or pull requests

1 participant