summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
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__"