Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit 31aee5a

Browse files
authored
1 parent 31e11ed commit 31aee5a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

client/js/chat.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ const query = (obj) =>
33
.map((k) => encodeURIComponent(k) + "=" + encodeURIComponent(obj[k]))
44
.join("&");
55
const url_prefix = document.querySelector("body").getAttribute("data-urlprefix");
6-
const markdown = window.markdownit();
6+
//const markdown = window.markdownit();
7+
const markdown = window.markdownit({html:true})
8+
.use(texmath, { engine: katex,
9+
delimiters: 'dollars',
10+
katexOptions: { macros: {"\\RR": "\\mathbb{R}"} } } );
711
const message_box = document.getElementById(`messages`);
812
const message_input = document.getElementById(`message-input`);
913
const box_conversations = document.querySelector(`.top`);

0 commit comments

Comments
 (0)