From 448cb97074bb471bc2c9e0848ecbd005e994c3a6 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Fri, 12 Sep 2025 18:59:51 +0300 Subject: Enha: replace weird quotes --- tui.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tui.go') diff --git a/tui.go b/tui.go index da97153..7ac03b1 100644 --- a/tui.go +++ b/tui.go @@ -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__" -- cgit v1.2.3