summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/arena.html3
-rw-r--r--assets/playground.html3
2 files changed, 4 insertions, 2 deletions
diff --git a/assets/arena.html b/assets/arena.html
index 90cc6af..80e1397 100644
--- a/assets/arena.html
+++ b/assets/arena.html
@@ -121,6 +121,7 @@
.chat-message-content .error {
color: red;
+ background: none;
}
.chat-message-content .message-text {
@@ -1028,7 +1029,7 @@
}
function renderMarkdown(text, error = '') {
- return marked.marked(text) + (error ? `<p class="error">${error}</p>` : '');
+ return marked.marked(text) + (error ? `<pre class="error">${error}</pre>` : '');
}
function calculateOffsets(pieces) {
diff --git a/assets/playground.html b/assets/playground.html
index 011d632..1c1c294 100644
--- a/assets/playground.html
+++ b/assets/playground.html
@@ -198,6 +198,7 @@
.chat-message-content .error {
color: red;
+ background: none;
}
.chat-message-content .message-text {
@@ -1251,7 +1252,7 @@
}
function renderMarkdown(text, error = '') {
- return marked.marked(text) + (error ? `<p class="error">${error}</p>` : '');
+ return marked.marked(text) + (error ? `<pre class="error">${error}</pre>` : '');
}
</script>
</body>