From d3c6bfb764f87d1a9bac999d749f0f4eecf2ed66 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 19 Jul 2024 16:54:28 +0200 Subject: [PATCH] enh: latex --- src/lib/components/chat/Messages/ResponseMessage.svelte | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 9fe8257c0..eded26fb3 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -175,9 +175,16 @@ delimiters: [ { left: '$$', right: '$$', display: false }, { left: '$ ', right: ' $', display: false }, + { left: '\\pu{', right: '}', display: false }, + { left: '\\ce{', right: '}', display: false }, { left: '\\(', right: '\\)', display: false }, { left: '\\[', right: '\\]', display: false }, - { left: '[ ', right: ' ]', display: false } + { left: '[ ', right: ' ]', display: false }, + { left: '\\begin{equation}', right: '\\end{equation}', display: true }, + { left: '\\begin{align}', right: '\\end{align}', display: true }, + { left: '\\begin{alignat}', right: '\\end{alignat}', display: true }, + { left: '\\begin{gather}', right: '\\end{gather}', display: true }, + { left: '\\begin{CD}', right: '\\end{CD}', display: true } ], // • rendering keys, e.g.: throwOnError: false