Skip to content

Allow for unopinionated conversion #31

@GuySartorelli

Description

@GuySartorelli

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @GuySartorelli

        Issue actions

          Allow for unopinionated conversion · Issue #31 · sensiolabs/ansi-to-html