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

BIN
bun.lockb

Binary file not shown.