MathBridge is a lightweight browser extension designed to bridge the gap between AI platforms and your workflow. It enables seamless extraction and conversion of TeX-based formulas into Microsoft Word (MathML), LaTeX, high-fidelity Plain Text (Unicode), or transparent PNG images.
- Automated TeX Extraction: Detects and extracts raw LaTeX source from Gemini, ChatGPT, DeepSeek, Claude, and Perplexity.
- Office Math Object Injection: Converts formulas into MathML wrappers supported by Microsoft Word for native equation editing.
- Unicode Math Mapping: Implements a recursive MathML walker to generate high-fidelity plain text for non-TeX environments (e.g., Notepad, messaging apps).
- High-Resolution Rendering: Provides PNG export with transparency, utilizing a sanitized headless rendering process to ensure visual consistency across different web themes.
- Zero-Config Integration: Injects unobtrusive copy triggers directly into the AI's rendering layer.
- Clone the repository:
git clone https://github.com/mlintangmz2765/MathBridge.git
- Navigate to
chrome://extensions/in Google Chrome. - Enable Developer mode.
- Select Load unpacked and point to the project directory.
MathBridge operates by intercepting the DOM after KaTeX/MathJax rendering. It retrieves the underlying TeX source and uses an internal KaTeX instance to generate a presentation MathML tree. For plain text conversion, it performs a recursive depth-first traversal of the node tree, mapping MathML tags and attributes to corresponding Mathematical Alphanumeric Symbols in Unicode.
- Google Chrome (or Chromium-based browser)
- Microsoft Word (for MathML/Equation support)
Distributed under the MIT License. See LICENSE for more information.
- Privacy Policy: Read our Privacy Policy to understand how we protect your data (we work 100% locally).
- Contributing: We welcome pull requests! Please read our CONTRIBUTING.md for details on our code of conduct.
If you find this extension helpful, consider supporting the development:
Developed by mlintangmz | 2026
