Coder Social home page Coder Social logo

Support for code 22 about ansi-to-html HOT 4 CLOSED

rburns avatar rburns commented on July 21, 2024
Support for code 22

from ansi-to-html.

Comments (4)

mlucool avatar mlucool commented on July 21, 2024

This also applies to:
23 Not italic, not Fraktur
24 Underline: None Not singly or doubly underlined

from ansi-to-html.

rburns avatar rburns commented on July 21, 2024

It would be nice to have. And possibly a little tricky to implement. I would think you'd need to at least account for the two scenarios here: 1fc513c. But, you can probably imagine other scenarios where mismatched opening/closing tags could arise.

Having said that, 24 Underline is already implemented. And doesn't appear to take into account those edge cases. https://github.com/rburns/ansi-to-html/blob/unstyle/test/ansi_to_html.coffee#L118-L121 https://github.com/rburns/ansi-to-html/blob/unstyle/src/ansi_to_html.coffee#L129 So, maybe it's not a practical problem.

Not sure when I'll find the time to look at this in more detail. Could be soon. Patches welcome, in any case.

from ansi-to-html.

rburns avatar rburns commented on July 21, 2024

well, disabling underline actually has more protections against those edge cases than I thought. And I implemented disabling bold. https://github.com/rburns/ansi-to-html/compare/unstyle

it appears that italic (3) is currently implemented to render as underlined text https://github.com/rburns/ansi-to-html/blob/unstyle/src/ansi_to_html.coffee#L124. Should fix that before implementing 23 Not italic.

from ansi-to-html.

mlucool avatar mlucool commented on July 21, 2024

👍 Thanks for looking into this so quickly

from ansi-to-html.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.