diff options
Diffstat (limited to 'tui.go')
-rw-r--r-- | tui.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -163,6 +163,14 @@ func strInSlice(s string, sl []string) bool { func colorText() { text := textView.GetText(false) + quoteReplacer := strings.NewReplacer( + `”`, `"`, + `“`, `"`, + `“`, `"`, + `”`, `"`, + `**`, `*`, + ) + text = quoteReplacer.Replace(text) // Step 1: Extract code blocks and replace them with unique placeholders var codeBlocks []string placeholder := "__CODE_BLOCK_%d__" |