Switch ANSI rendering to termenv to automatically convert colors between color-profiles

This commit is contained in:
Christian Muehlhaeuser
2020-01-13 04:40:43 +01:00
parent 5d74978da0
commit 743ecf40c5
13 changed files with 53 additions and 172 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
1. First Item                                                                   
2. Second Item                                                                  
1. First Item                                                                   
2. Second Item                                                                  
+3 -3
View File
@@ -1,3 +1,3 @@
 => h1 <= 
 ## h2 
 ### h3
 => h1 <= 
 ## h2 
 ### h3
+1 -1
View File
@@ -1 +1 @@
Image [Image: https://charm.sh/logo.png]. 
Image [Image: https://charm.sh/logo.png]. 
+4 -4
View File
@@ -1,6 +1,6 @@
 If you want to make a more significant change, please first open an issue     
 https://github.com/twpayne/chezmoi/issues/new to discuss the change that you  
 want to make. Dave Cheney gives a good rationale                              
 https://dave.cheney.net/2019/02/18/talk-then-code as to why this is important.
 If you want to make a more significant change, please first open an issue     
 https://github.com/twpayne/chezmoi/issues/new to discuss the change that you  
 want to make. Dave Cheney gives a good rationale                              
 https://dave.cheney.net/2019/02/18/talk-then-code as to why this is important.
+7 -7
View File
@@ -1,10 +1,10 @@
                                                                              
 • Getting started                                                             
 • Developing locally                                                          
 • Documentation changes                                                       
 • Contributing changes                                                        
 • Managing releases                                                           
 • Packaging                                                                   
 • Updating the website                                                        
 • Getting started                                                             
 • Developing locally                                                          
 • Documentation changes                                                       
 • Contributing changes                                                        
 • Managing releases                                                           
 • Packaging                                                                   
 • Updating the website                                                        
+1 -1
View File
@@ -1 +1 @@
This is a link (https://charm.sh). 
This is a link (https://charm.sh). 
+3 -3
View File
@@ -1,4 +1,4 @@
• First Item                                                                    
    • Nested List Item                                                          
• Second Item                                                                   
• First Item                                                                    
    • Nested List Item                                                          
• Second Item                                                                   
+14 -14
View File
@@ -1,36 +1,36 @@
  Gold                                                                         
  Gold                                                                         
                                                                               
 Render markdown on the CLI, with pizzazz!                                     
 Render markdown on the CLI, with pizzazz!                                     
                                                                               
 ## What is it?                                                                
 ## What is it?                                                                
                                                                               
 Gold is a Golang library that allows you to use JSON based stylesheets to     
 render Markdown files in the terminal. Just like CSS, you can define color and
 style attributes on Markdown elements. The difference is that you use ANSI    
 color and terminal codes instead of CSS properties and hex colors.            
                                                                               
 ## Usage                                                                      
 ## Usage                                                                      
                                                                               
 See cmd/gold /cmd/gold/.                                                      
 See cmd/gold /cmd/gold/.                                                      
                                                                               
 ## Example Output                                                             
 ## Example Output                                                             
                                                                               
 Image: Gold Dark Style →                                                      
 https://github.com/charmbracelet/gold/raw/master/styles/gallery/dark.png      
 https://github.com/charmbracelet/gold/raw/master/styles/gallery/dark.png      
                                                                               
 Check out the Gold Style Gallery                                              
 https://github.com/charmbracelet/gold/blob/master/styles/gallery/README.md!   
 Check out the Gold Style Gallery                                              
 https://github.com/charmbracelet/gold/blob/master/styles/gallery/README.md!   
                                                                               
 ## Colors                                                                     
 ## Colors                                                                     
                                                                               
 Currently  gold  uses the Aurora ANSI colors                                  
 https://godoc.org/github.com/logrusorgru/aurora#Index.                        
 Currently  gold  uses the Aurora ANSI colors                                  
 https://godoc.org/github.com/logrusorgru/aurora#Index.                        
                                                                               
 ## Development                                                                
 ## Development                                                                
                                                                               
 Style definitions located in  styles/  can be embedded into the binary by     
 running statik https://github.com/rakyll/statik:                              
 running statik https://github.com/rakyll/statik:                              
                                                                               
   statik -f -src styles -include "*.json"                                     
                                                                               
+2 -2
View File
@@ -1,3 +1,3 @@
✓ Finished Task                                                                 
✗ Outstanding Task                                                              
✓ Finished Task                                                                 
✗ Outstanding Task