diff --git a/kagi.el b/kagi.el index a92985f..d53d77f 100644 --- a/kagi.el +++ b/kagi.el @@ -87,8 +87,9 @@ FastGPT with the following prompt: (with-temp-buffer (insert string) (goto-char (point-min)) - (while (re-search-forward "\\([^<]*\\)" nil t) - (replace-match (propertize (match-string 1) 'font-lock-face 'bold) t nil)) + (let ((bold-match (rx (seq "" (group (* (not "<"))) "")))) + (while (re-search-forward bold-match nil t) + (replace-match (propertize (match-string 1) 'font-lock-face 'bold) t nil))) (buffer-string))) (defun kagi--format-output (output)