Enha: replace weird quotes

This commit is contained in:
Grail Finder
2025-09-12 18:59:51 +03:00
parent ff24ad4af7
commit 448cb97074
2 changed files with 11 additions and 2 deletions

8
tui.go
View File

@@ -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__"