We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a8afbd commit 2d42b85Copy full SHA for 2d42b85
src/lib/components/ChatMessage.svelte
@@ -295,9 +295,9 @@
295
296
// Handle other markdown formatting and convert newlines to br for non-code content
297
result = result
298
- // Handle bold code blocks first (removes backticks when inside bold)
299
- .replace(/\*\*`([^`]+)`\*\*/g, '<strong>$1</strong>')
300
- // Then handle regular inline code
+ // Handle bold text that contains backticks (remove backticks but keep bold)
+ .replace(/\*\*([^*]*)`([^`]+)`([^*]*)\*\*/g, '<strong>$1$2$3</strong>')
+ // Handle regular inline code (keep code highlighting)
301
.replace(
302
/`([^`]+)`/g,
303
'<code class="bg-surface-200-700-token text-surface-700-200-token px-1 rounded ">$1</code>'
0 commit comments