@@ -231,13 +231,13 @@ func convertRegularGemini(s string, numLinks, width int, proxied bool) (string,
231231
232232 wrappedLink = wrapLine (linkText , width ,
233233 strings .Repeat (" " , indent )+
234- `["` + strconv .Itoa (num - 1 )+ `"]` + linkTag ,
234+ `["` + strconv .Itoa (num - 1 )+ `"]` ,
235235 `[::-][""]` ,
236236 false , // Don't indent the first line, it's the one with link number
237237 )
238238
239239 wrappedLink [0 ] = `[::b][` + strconv .Itoa (num ) + "[][::-]" + spacing +
240- `["` + strconv .Itoa (num - 1 ) + `"]` + linkTag +
240+ `["` + strconv .Itoa (num - 1 ) + `"]` +
241241 wrappedLink [0 ] + `[::-][""]`
242242 }
243243 }
@@ -341,8 +341,12 @@ func RenderGemini(s string, width int, proxied bool) (string, []string) {
341341 // Lines are modified below to always end with \r\n
342342 buf = strings .TrimSuffix (buf , "\r \n " )
343343
344- rendered += fmt .Sprintf ("[%s]" , config .GetColorString ("preformatted_text" )) +
345- buf + fmt .Sprintf ("[%s:%s:-]\r \n " , config .GetColorString ("regular_text" ), config .GetColorString ("bg" ))
344+ if viper .GetBool ("a-general.color" ) {
345+ rendered += fmt .Sprintf ("[%s]" , config .GetColorString ("preformatted_text" )) +
346+ buf + fmt .Sprintf ("[%s:%s:-]\r \n " , config .GetColorString ("regular_text" ), config .GetColorString ("bg" ))
347+ } else {
348+ rendered += buf + "\r \n "
349+ }
346350 }
347351
348352 // processRegular processes non-preformatted sections
0 commit comments