summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-09-12 18:59:51 +0300
committerGrail Finder <wohilas@gmail.com>2025-09-12 18:59:51 +0300
commit448cb97074bb471bc2c9e0848ecbd005e994c3a6 (patch)
tree36db923c47a58156a60632ef588e191de50c67b8 /tui.go
parentff24ad4af7c3b88227b9387a5a660e83e82aef76 (diff)
Enha: replace weird quotesHEADmaster
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go8
1 files changed, 8 insertions, 0 deletions
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__"