rich · Org, AsciiDoc and man pages

0.0 s

Screenshots

❯ rich --force-terminal notes.org | head -36                                                        
                                           Release Notes                                            
                                     Ada Lovelace · 2026-10-01                                      
                                                                                                    
OPTIONS: toc:nil num:nil                                                                            
                                                                                                    
DONE [#A] Ship the parser  :parser:release:                                                         
CLOSED: [2026-09-30 Wed 17:02]                                                                      
OWNER: ada · EFFORT: 2d                                                                             
                                                                                                    
The parser reads bold, italic, underlined, verbatim, code and struck text. Links look like the Org  
site (https://orgmode.org) or plain https://example.com, and a line ends here                       
on purpose.                                                                                         
                                                                                                    
NEXT Check the edge cases [1/3]                                                                     
                                                                                                    
 • [x] Unterminated blocks                                                                          
 • [ ] Deep nesting                                                                                 
        1 lists inside lists                                                                        
        7 with a counter                                                                            
 • [-] Wide characters: 漢字 and emoji                                                              
                                                                                                    
Glossary                                                                                            
                                                                                                    
Headline                                                                                            
    a line of stars and a title                                                                     
                                                                                                    
Drawer                                                                                              
    metadata between :NAME: and :END:                                                               
                                                                                                    
Examples                                                                                            
                                                                                                    
    Sizes by kind                                                                                   
                                                                                                    
 Kind   Count  Share                                                                                
 ───────────────────                                                                                
 lists     12   40%                                                                                 
❯                                                                                                   
                                                                                                    
                                                                                                    
org
❯ rich --force-terminal guide.adoc | head -36                                                       
rich: warning: guide.adoc:69: include::appendix.adoc[] is not followed; it is shown as written      
                                          The Field Guide                                           
                         Ada Lovelace <ada@example.com> · v2.1, 2026-10-01                          
                                                                                                    
The Analytical Engine reads strong, emphasis, monospace and highlighted text, with unconstrained    
marks, © symbols — and a footnote.[1]                                                               
                                                                                                    
Getting started                                                                                     
                                                                                                    
╭─ Note ───────────────────────────────────────────────────────────────────────────────────────────╮
│ Read the whole guide before you begin.                                                           │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
                                                                                                    
Install it                                                                                          
                                                                                                    
 cargo install rs-rich-cli # <1>                                                                    
 rich --version            # <2>                                                                    
                                                                                                    
                                                                                                    
 <1> Installs the rich binary.                                                                      
 <2> Prints its version.                                                                            
                                                                                                    
Lists                                                                                               
                                                                                                    
 • Unordered                                                                                        
    • Nested deeper                                                                                 
 • [x] Checked off                                                                                  
 • [ ] Still to do                                                                                  
                                                                                                    
 1 First                                                                                            
 2 Second                                                                                           
                                                                                                    
   A paragraph attached with a list continuation.                                                   
                                                                                                    
CPU                                                                                                 
    The processing unit                                                                             
                                                                                                    
❯                                                                                                   
                                                                                                    
asciidoc
❯ rich --force-terminal greet.1 | head -36                                                          
GREET(1)                                   User Commands                                    GREET(1)
                                                                                                    
NAME                                                                                                
                                                                                                    
greet - print a friendly greeting                                                                   
                                                                                                    
SYNOPSIS                                                                                            
                                                                                                    
greet [-n count] [--shout] name...                                                                  
                                                                                                    
DESCRIPTION                                                                                         
                                                                                                    
greet writes a greeting for each name to standard output. The greeting is “Hello” unless --shout    
says otherwise — then it is louder.                                                                 
                                                                                                    
Options                                                                                             
                                                                                                    
-n, --count=N                                                                                       
    Repeat each greeting N times.                                                                   
                                                                                                    
-s, --shout                                                                                         
    Write the greeting in capitals.                                                                 
                                                                                                    
         • Works with every name.                                                                   
         • Ignores the locale.                                                                      
                                                                                                    
EXAMPLES                                                                                            
                                                                                                    
                                                                                                    
 $ greet -n 2 world                                                                                 
 Hello, world                                                                                       
 Hello, world                                                                                       
                                                                                                    
                                                                                                    
FILES                                                                                               
                                                                                                    
❯                                                                                                   
                                                                                                    
                                                                                                    
man
❯ rich --force-terminal --syntax greet.1 | head -14                                                 
.\" A sample man page for rs-rich-ext's document tests.                                             
.TH GREET 1 "October 2026" "greet 1.0" "User Commands"                                              
.SH NAME                                                                                            
greet \- print a friendly greeting                                                                  
.SH SYNOPSIS                                                                                        
.B greet                                                                                            
[\fB\-n\fR \fIcount\fR]                                                                             
[\fB\-\-shout\fR]                                                                                   
.IR name ...                                                                                        
.SH DESCRIPTION                                                                                     
.B greet                                                                                            
writes a greeting for each                                                                          
.I name                                                                                             
to standard output.                                                                                 
❯                                                                                                   
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
source