feat: Add LaTeX support to the markdown renderer

Adds LaTeX support to the markdown renderer using `rehype-katex` for math equations.

- Replaces block-level LaTeX delimiters `\[ \]` with `$$ $$`.
- Replaces inline LaTeX delimiters `\( \)` with `$ $`.
- Preprocesses the message before rendering to ensure correct delimiters.

This improves the rendering of markdown messages containing mathematical expressions, enhancing the user experience.
This commit is contained in:
n4ze3m
2024-09-08 11:53:15 +05:30
parent c077201591
commit 824ecf0a8c
4 changed files with 49 additions and 22 deletions

View File

@@ -50,7 +50,7 @@ export default defineConfig({
outDir: "build",
manifest: {
version: "1.2.2",
version: "1.2.3",
name:
process.env.TARGET === "firefox"
? "Page Assist - A Web UI for Local AI Models"