diff --git a/src/interface/desktop/chat.html b/src/interface/desktop/chat.html
index ebf93195..09bc6ff7 100644
--- a/src/interface/desktop/chat.html
+++ b/src/interface/desktop/chat.html
@@ -139,6 +139,8 @@
newHTML = newHTML.replace(/__([\s\S]*?)__/g, '$1');
// Remove any text between [INST] and tags. These are spurious instructions for the AI chat model.
newHTML = newHTML.replace(/\[INST\].+(<\/s>)?/g, '');
+ // For any text that has single backticks, replace them with tags
+ newHTML = newHTML.replace(/`([^`]+)`/g, '$1
');
return newHTML;
}
@@ -573,6 +575,16 @@
margin: 10px;
}
+ code.chat-response {
+ background: var(--primary-hover);
+ color: var(--primary-inverse);
+ border-radius: 5px;
+ padding: 5px;
+ font-size: 14px;
+ font-weight: 300;
+ line-height: 1.5em;
+ }
+
button.reference-button {
background: var(--background-color);
color: var(--main-text-color);
diff --git a/src/khoj/interface/web/chat.html b/src/khoj/interface/web/chat.html
index 82e3233d..fb7c0b05 100644
--- a/src/khoj/interface/web/chat.html
+++ b/src/khoj/interface/web/chat.html
@@ -148,6 +148,8 @@ To get started, just start typing below. You can also type / to see a list of co
newHTML = newHTML.replace(/__([\s\S]*?)__/g, '$1');
// Remove any text between [INST] and tags. These are spurious instructions for the AI chat model.
newHTML = newHTML.replace(/\[INST\].+(<\/s>)?/g, '');
+ // For any text that has single backticks, replace them with tags
+ newHTML = newHTML.replace(/`([^`]+)`/g, '$1
');
return newHTML;
}
@@ -490,6 +492,16 @@ To get started, just start typing below. You can also type / to see a list of co
background: var(--primary-hover);
}
+ code.chat-response {
+ background: var(--primary-hover);
+ color: var(--primary-inverse);
+ border-radius: 5px;
+ padding: 5px;
+ font-size: 14px;
+ font-weight: 300;
+ line-height: 1.5em;
+ }
+
#chat-body {
font-size: medium;
margin: 0px;