theZiz / aha

Ansi HTML Adapter
Other
915 stars 88 forks source link

contribution: convert aha's html output to github-compatible html #81

Open milahu opened 3 years ago

milahu commented 3 years ago

i made a wrapper script, to convert aha's html output to github-compatible html

https://github.com/milahu/random/blob/master/colors-to-github.sh

on github, we need <pre><span color="red">red</span></pre> etc

demo:

colors-to-github.sh jp2a 'awesome face.png'

                                
         .;ldkO00Okdl;.         
      .o0XXXXXXXXXXXXXX0o.      
    .kKKXXXXXXXXXXXXKKXXXXk'    
   ::dk: :0XXXXXXdcdkd.'xXXXo   
  o.NMMc ..KXXXX:dMMM0...dXXXd  
 'O,MMMMMM;kXXXX.MMMMMMMX'XXXX, 
 oXloooooolKXXXXoooooooolxXXXXd 
 oXKkkkkkkkkkkkkkkkkkkkkkXXXXXo 
 'XKk .................. dXXXX, 
  oXXc...................lXXXd  
   lXX:.......':lolc,....KXXo   
    .kXx....'oKKKKKKKc.cKXk'    
      .l0kc,;oxxdolccxK0o.      
          .cdxxxkkkdc'