Skip to content

Commit 8a8afbd

Browse files
add liner function descriptions
1 parent 1e92c45 commit 8a8afbd

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/lib/components/ChatMessage.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@
295295
296296
// Handle other markdown formatting and convert newlines to br for non-code content
297297
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
298301
.replace(
299302
/`([^`]+)`/g,
300303
'<code class="bg-surface-200-700-token text-surface-700-200-token px-1 rounded ">$1</code>'

src/lib/components/ThemeSwitcher.svelte

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,10 @@
9494

9595
<div
9696
class="relative theme-dropdown"
97-
class:border-2={isDropdownOpen}
98-
class:border-blue-500={isDropdownOpen}
9997
>
10098
<button
10199
bind:this={buttonRef}
102-
class="btn btn-sm variant-ghost-surface flex items-center space-x-2"
100+
class="btn btn-sm variant-ghost-surface flex items-center space-x-2 focus:outline-none"
103101
on:click={() => {
104102
console.log('Theme button click event fired');
105103
toggleDropdown();
@@ -179,7 +177,7 @@
179177
</div>
180178
</div>
181179
<button
182-
class="relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-white/50 focus:ring-offset-2 {$isDarkMode
180+
class="relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none {$isDarkMode
183181
? 'bg-white/30'
184182
: 'bg-white/20'}"
185183
on:click={handleDarkModeToggle}

0 commit comments

Comments
 (0)