|
9 | 9 |
|
10 | 10 | Features: - 256-color support with different shades for headers - Syntax |
11 | 11 | highlighting for code blocks - Proper word wrapping based on terminal width - |
12 | | - Support for all standard markdown elements - Streaming input processing |
| 12 | + Support for all standard markdown elements - Streaming renderer with |
| 13 | + backtracking for LLM output - Character-by-character processing with minimal |
| 14 | + flickering |
| 15 | + |
| 16 | + The renderer automatically handles both complete files and streaming input, |
| 17 | + with intelligent backtracking when markdown syntax is incomplete. |
13 | 18 |
|
14 | 19 | Options: |
15 | 20 | -w, --width INTEGER Override terminal width |
|
37 | 42 | # name: TestCLIInterface.test_cli_with_stdin |
38 | 43 | ''' |
39 | 44 | [96m────────────────────────────────────────────────────────────────────────────────[0m |
| 45 | + [96m────────────────────────────────────────────────────────────────────────────────[0m |
| 46 | + [1A[2K[1A[2K[96m────────────────────────────────────────────────────────────────────────────────[0m |
| 47 | + [1;96m [0m[1;96mTest[0m[1;96m [0m |
| 48 | + [96m────────────────────────────────────────────────────────────────────────────────[0m |
| 49 | + [1A[2K[1A[2K[1A[2K[96m────────────────────────────────────────────────────────────────────────────────[0m |
| 50 | + [1;96m [0m[1;96mTest Header[0m[1;96m [0m |
| 51 | + [96m────────────────────────────────────────────────────────────────────────────────[0m |
| 52 | + [1A[2K[1A[2K[1A[2K[96m────────────────────────────────────────────────────────────────────────────────[0m |
| 53 | + [1;96m [0m[1;96mTest Header[0m[1;96m [0m |
| 54 | + [96m────────────────────────────────────────────────────────────────────────────────[0m |
| 55 | + |
| 56 | + [1A[2K[1A[2K[1A[2K[1A[2K[96m────────────────────────────────────────────────────────────────────────────────[0m |
| 57 | + [1;96m [0m[1;96mTest Header[0m[1;96m [0m |
| 58 | + [96m────────────────────────────────────────────────────────────────────────────────[0m |
| 59 | + |
| 60 | + This is a [1mtest[0m |
| 61 | + [1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[96m────────────────────────────────────────────────────────────────────────────────[0m |
| 62 | + [1;96m [0m[1;96mTest Header[0m[1;96m [0m |
| 63 | + [96m────────────────────────────────────────────────────────────────────────────────[0m |
| 64 | + |
| 65 | + This is a [1mtest[0m paragraph |
| 66 | + [1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[96m────────────────────────────────────────────────────────────────────────────────[0m |
| 67 | + [1;96m [0m[1;96mTest Header[0m[1;96m [0m |
| 68 | + [96m────────────────────────────────────────────────────────────────────────────────[0m |
| 69 | + |
| 70 | + This is a [1mtest[0m paragraph with |
| 71 | + [1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[96m────────────────────────────────────────────────────────────────────────────────[0m |
40 | 72 | [1;96m [0m[1;96mTest Header[0m[1;96m [0m |
41 | 73 | [96m────────────────────────────────────────────────────────────────────────────────[0m |
42 | 74 |
|
43 | 75 | This is a [1mtest[0m paragraph with [1;31;48;5;237mcode[0m. |
44 | 76 |
|
| 77 | + |
45 | 78 | ''' |
46 | 79 | # --- |
47 | 80 | # name: TestCLIInterface.test_cli_with_width_option |
48 | 81 | ''' |
49 | 82 | [96m────────────────────────────────────────[0m |
| 83 | + [96m────────────────────────────────────────[0m |
| 84 | + [1A[2K[1A[2K[96m────────────────────────────────────────[0m |
| 85 | + [1;96m [0m[1;96mTest[0m[1;96m [0m |
| 86 | + [96m────────────────────────────────────────[0m |
| 87 | + [1A[2K[1A[2K[1A[2K[96m────────────────────────────────────────[0m |
| 88 | + [1;96m [0m[1;96mTest Header[0m[1;96m [0m |
| 89 | + [96m────────────────────────────────────────[0m |
| 90 | + [1A[2K[1A[2K[1A[2K[96m────────────────────────────────────────[0m |
| 91 | + [1;96m [0m[1;96mTest Header[0m[1;96m [0m |
| 92 | + [96m────────────────────────────────────────[0m |
| 93 | + |
| 94 | + [1A[2K[1A[2K[1A[2K[1A[2K[96m────────────────────────────────────────[0m |
50 | 95 | [1;96m [0m[1;96mTest Header[0m[1;96m [0m |
51 | 96 | [96m────────────────────────────────────────[0m |
52 | 97 |
|
|
55 | 100 | terminal width is changed to a smaller |
56 | 101 | value. |
57 | 102 |
|
| 103 | + |
58 | 104 | ''' |
59 | 105 | # --- |
60 | 106 | # name: TestEdgeCases.test_cli_nonexistent_file |
|
0 commit comments