Skip to content

feat: support LaTeX mathematical notations, fix Gemini tool response … - #6

Merged
RickyDane merged 1 commit into
mainfrom
feature/math_notations
Aug 14, 2026
Merged

feat: support LaTeX mathematical notations, fix Gemini tool response …#6
RickyDane merged 1 commit into
mainfrom
feature/math_notations

Conversation

@RickyDane

Copy link
Copy Markdown
Owner

…format, and bump version to 0.2.2

@RickyDane
RickyDane merged commit ee23ddd into main Aug 14, 2026
5 of 6 checks passed
@RickyDane
RickyDane deleted the feature/math_notations branch August 14, 2026 19:20
@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: dc701e6d-52df-4e65-8cf9-0179d028ab3a

📥 Commits

Reviewing files that changed from the base of the PR and between 163f188 and 547f93e.

⛔ Files ignored due to path filters (2)
  • package-lock.json is excluded by !**/package-lock.json
  • src-tauri/Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (8)
  • docs/review/math_notations/findings.md
  • docs/review/math_notations/summary.md
  • package.json
  • src-tauri/Cargo.toml
  • src-tauri/tauri.conf.json
  • src/components/MarkdownMessage.tsx
  • src/index.css
  • src/utils/toolManager.ts

📝 Walkthrough

Summary by CodeRabbit

  • New Features
    • Added support for rendering LaTeX mathematical notation in Markdown messages.
    • Added improved display formatting for equations, including spacing and horizontal scrolling.
  • Bug Fixes
    • Improved handling of tool responses and assistant tool calls when communicating with Gemini.
    • Added clearer styling for mathematical rendering errors, including dark mode visibility.
  • Chores
    • Updated the application version to 0.2.2.
  • Documentation
    • Added a review of mathematical notation rendering issues, validation results, and recommendations.

Walkthrough

The pull request adds KaTeX rendering to Markdown messages, documents related rendering findings, updates application versions and dependencies, and changes Gemini message conversion to group tool responses and emit assistant tool calls as model messages.

Changes

Math rendering

Layer / File(s) Summary
KaTeX rendering integration
package.json, src-tauri/..., src/components/MarkdownMessage.tsx, src/index.css
The application adds math rendering dependencies, enables remarkMath and rehypeKatex, loads KaTeX styles, adds KaTeX CSS rules, and updates versions to 0.2.2.
Math rendering review documentation
docs/review/math_notations/*
The review documents describe five LaTeX rendering findings and summarize validation results and merge recommendations.

Gemini message conversion

Layer / File(s) Summary
Gemini tool-message conversion
src/utils/toolManager.ts
convertMessagesToGemini accumulates converted messages, groups adjacent tool responses into user messages, emits assistant tool calls as model messages, and appends subsequent messages.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant