@@ -38,7 +38,7 @@ func NewRenderer(atmosConfig schema.AtmosConfiguration, opts ...Option) (*Render
38
38
39
39
if atmosConfig .Settings .Terminal .NoColor {
40
40
renderer , err := glamour .NewTermRenderer (
41
- glamour .WithAutoStyle ( ),
41
+ glamour .WithStandardStyle ( styles . AsciiStyle ),
42
42
glamour .WithWordWrap (int (r .width )),
43
43
glamour .WithColorProfile (r .profile ),
44
44
glamour .WithEmoji (),
@@ -75,14 +75,28 @@ func NewRenderer(atmosConfig schema.AtmosConfiguration, opts ...Option) (*Render
75
75
76
76
func (r * Renderer ) RenderWithoutWordWrap (content string ) (string , error ) {
77
77
// Render without line wrapping
78
- out , err := glamour .NewTermRenderer (
79
- glamour .WithAutoStyle (), // Uses terminal's default style
80
- glamour .WithWordWrap (0 ),
81
- glamour .WithColorProfile (r .profile ),
82
- glamour .WithEmoji (),
83
- )
84
- if err != nil {
85
- return "" , err
78
+ var out * glamour.TermRenderer
79
+ var err error
80
+ if r .atmosConfig .Settings .Terminal .NoColor {
81
+ out , err = glamour .NewTermRenderer (
82
+ glamour .WithStandardStyle (styles .AsciiStyle ),
83
+ glamour .WithWordWrap (0 ),
84
+ glamour .WithColorProfile (r .profile ),
85
+ glamour .WithEmoji (),
86
+ )
87
+ if err != nil {
88
+ return "" , err
89
+ }
90
+ } else {
91
+ out , err = glamour .NewTermRenderer (
92
+ glamour .WithAutoStyle (), // Uses terminal's default style
93
+ glamour .WithWordWrap (0 ),
94
+ glamour .WithColorProfile (r .profile ),
95
+ glamour .WithEmoji (),
96
+ )
97
+ if err != nil {
98
+ return "" , err
99
+ }
86
100
}
87
101
result := ""
88
102
if r .isTTYSupportForStdout () {
@@ -155,22 +169,6 @@ func (r *Renderer) RenderAscii(content string) (string, error) {
155
169
return renderer .Render (content )
156
170
}
157
171
158
- // RenderWithStyle renders markdown content with a specific style
159
- func (r * Renderer ) RenderWithStyle (content string , style []byte ) (string , error ) {
160
- renderer , err := glamour .NewTermRenderer (
161
- glamour .WithAutoStyle (),
162
- glamour .WithWordWrap (int (r .width )),
163
- glamour .WithStylesFromJSONBytes (style ),
164
- glamour .WithColorProfile (r .profile ),
165
- glamour .WithEmoji (),
166
- )
167
- if err != nil {
168
- return "" , err
169
- }
170
-
171
- return renderer .Render (content )
172
- }
173
-
174
172
// RenderWorkflow renders workflow documentation with specific styling
175
173
func (r * Renderer ) RenderWorkflow (content string ) (string , error ) {
176
174
// Add workflow header
0 commit comments