diff options
Diffstat (limited to 'assets/playground.html')
| -rw-r--r-- | assets/playground.html | 3 |
1 files changed, 2 insertions, 1 deletions
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> |
