Refine rendering of equations in chat pane#7961
Merged
mscolnick merged 2 commits intomarimo-team:mainfrom Jan 27, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Light2Dark
reviewed
Jan 24, 2026
frontend/package.json
Outdated
| "vega-tooltip": "^1.1.0", | ||
| "vscode-jsonrpc": "^8.2.1", | ||
| "vscode-languageserver-protocol": "^3.17.5", | ||
| "vscode-languageserver-types": "^3.17.5", |
Collaborator
There was a problem hiding this comment.
was this added with the upgrade & install?
Contributor
Author
There was a problem hiding this comment.
Hello, I've just updated my PR so dependency changes are minimal. I'm not commiting the lock files as well. I've also tested that the fix still works, it's quite nice to see all equations including inline ones well formatted in the chat pane.
Collaborator
There was a problem hiding this comment.
The lock files do need to be committed, since the deps have changed.
0b5b0e6 to
c2128e5
Compare
c2128e5 to
05027c3
Compare
Contributor
Author
|
It seems that there is a test error unrelated to my PR |
|
🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.19.7-dev16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Summary
Closes #7935
🔍 Description of Changes
Summary
Enable LaTeX math rendering in the marimo chat pane by integrating the
streamdownmath plugin and updating AI system prompts.Changes
Frontend
@streamdown/mathdependency and enabled it in theMarkdownRenderercomponent.streamdownto^2.1.0to support thepluginsarchitecture required for LaTeX.Backend
marimo/_server/ai/prompts.pyto instruct the LLM to use double dollar signs ($$) for both inline and block mathematical expressions, ensuring compatibility with thestreamdownmath plugin.tests/_server/ai/test_prompts.pyto verify that markdown rules correctly include LaTeX instructions, and updated prompt snapshots.Workspace
pnpm-lock.yamlandpixi.lockafter successful workspace-wide dependency installation.Test plan
make dev.$delimiters$.📋 Checklist