diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-01-13 11:02:57 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-01-13 11:02:57 +0300 |
| commit | 0f8fdae0e4fe7f3b00de7dfdfdbbb5b8f5ded415 (patch) | |
| tree | 24fae319da9320fcafb905dd00013c37790eeb18 /helpfuncs.go | |
| parent | c942f4bfdb2fb0569752682da71fa845c089239e (diff) | |
Enha: single backtick style
Diffstat (limited to 'helpfuncs.go')
| -rw-r--r-- | helpfuncs.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/helpfuncs.go b/helpfuncs.go index 0efed05..73f8fb0 100644 --- a/helpfuncs.go +++ b/helpfuncs.go @@ -62,6 +62,7 @@ func colorText() { // Step 2: Apply other regex styles to the non-code parts text = quotesRE.ReplaceAllString(text, `[orange::-]$1[-:-:-]`) text = starRE.ReplaceAllString(text, `[turquoise::i]$1[-:-:-]`) + text = singleBacktickRE.ReplaceAllString(text, "`[pink::i]$1[-:-:-]`") // text = thinkRE.ReplaceAllString(text, `[yellow::i]$1[-:-:-]`) // Step 3: Restore the styled code blocks from placeholders for i, cb := range codeBlocks { |
