From aa01e9cb4078765537979ac039b5c0fbad80a9a2 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 31 Oct 2019 08:39:39 -0400 Subject: [PATCH] Fix tag formatting to show code properly --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 52ddb3a..e6ca72f 100644 --- a/main.go +++ b/main.go @@ -467,7 +467,7 @@ func formatMessageBody(body string) StyledString { output = output.colorRegex(`@[\w_]*(\.[\w_]+)*`, config.Colors.Message.LinkKeybase) // TODO change how bold, italic etc works, so it uses boldOn boldOff ([1m and [22m) output = output.colorRegex(`\*[^\*]*\*`, config.Colors.Message.Body.withBold()) - output = output.replaceString("```", "") + output = output.replaceString("```", "\n\n") // TODO make background color cover whole line output = output.colorRegex("(.*\n)*", config.Colors.Message.Code) output = output.colorRegex("`[^`]*`", config.Colors.Message.Code)