LibreChat/client/src/components/Artifacts
Danny Avila c7e4523d7c
🎯 refactor: LaTeX and Math Rendering (#7952)
* refactor: Markdown LaTeX processing

- Added micromark-extension-llm-math as a dependency in package.json and package-lock.json.
- Updated Vite configuration to alias micromark-extension-math.
- Modified Markdown components to use singleDollarTextMath: false for improved LaTeX rendering.
- Refactored latex utility functions to enhance LaTeX processing and escaping mechanisms.

* chore: linting of `EditTextPart`

* fix: handle key up to initiate edit of latest user message by adding id prop to Edit Message HoverButton

* chore: linting in Artifact component

* refactor: enhance LaTeX preprocessing functionality

- Updated `preprocessLaTeX` to improve handling of currency and LaTeX expressions.
- Introduced optimized regex patterns for better performance.
- Added support for escaping mhchem commands and handling code blocks.
- Enhanced tests for various LaTeX scenarios, including currency and special characters.
- Refactored existing tests to align with new preprocessing logic.

* chore: filter out false positives in unused packages workflow

- Added a grep command to exclude the micromark-extension-llm-math package from the list of unused dependencies in the GitHub Actions workflow.
2025-06-18 00:58:51 -04:00
..
Artifact.tsx 🎯 refactor: LaTeX and Math Rendering (#7952) 2025-06-18 00:58:51 -04:00
ArtifactButton.tsx 🔄 refactor: Artifact Visibility Management (#7181) 2025-05-01 14:40:39 -04:00
ArtifactCodeEditor.tsx 🎨 feat: OpenAI Image Tools (GPT-Image-1) (#7079) 2025-04-26 04:30:58 -04:00
ArtifactPreview.tsx 🎨 feat: OpenAI Image Tools (GPT-Image-1) (#7079) 2025-04-26 04:30:58 -04:00
Artifacts.tsx 🔄 refactor: Artifact Visibility Management (#7181) 2025-05-01 14:40:39 -04:00
ArtifactTabs.tsx 🎨 feat: OpenAI Image Tools (GPT-Image-1) (#7079) 2025-04-26 04:30:58 -04:00
Code.tsx 🎨 style: Improve KaTeX Rendering for LaTeX Equations (#7223) 2025-05-06 10:50:09 -04:00
DownloadArtifact.tsx 🚀 feat: Artifact Editing & Downloads (#5428) 2025-01-23 18:19:04 -05:00
Mermaid.tsx feat: Quality-of-Life Chat/Edit-Message Enhancements (#5194) 2025-01-06 22:47:24 -05:00
Thinking.tsx 🚀 feat: o1 Tool Calling & reasoning_effort (#5553) 2025-01-30 12:36:35 -05:00