TeXPatch
Extension Actions
- Live on Store
Patch TeX quirks in page selections (uses texpatch).
TeXPatch cleans up common TeX/LaTeX issues in Markdown so KaTeX/MathJax renderings look correct across Obsidian, Quarto, and web docs.
What it does
• Patches common TeX/LaTeX quirks (e.g., |x| → \lvert x\rvert)
• Respects code fences and inline code (won’t touch your code blocks)
• Idempotent transforms (safe to run multiple times)
• Local-only: no permissions, no network calls
How to use
1) Click the TeXPatch icon to open the popup.
2) Paste Markdown containing TeX/LaTeX.
3) Press “Patch,” then “Copy” to use the fixed output.
Privacy
TeXPatch runs entirely in your browser. No data leaves your device.
Open source
Questions or feature requests? Open an issue on the [TeXPatch GitHub repo](https://github.com/pakkinlau/TeXPatch).