Repository navigation
0.3.1 fixes Ghostty formula backgrounds, theme colors, and a reproduced session-opening failure. Obsidian image quality problems remain unresolved.
Fixed
- Match Kitty formula backgrounds and cell padding to the enclosing UI instead of exposing Ghostty's dark terminal default.
- Use the current theme foreground and refresh existing formulas after theme changes.
- Remove an image helper whose mixed OpenTUI runtime could allocate colliding native node numbers and stop an existing session from rendering.
- Initialize MathJax in a lazy worker. Import failures no longer block plugin loading; graphics errors or a 15-second timeout use cell fallback.
Known unresolved issues
- Blurry formula images in obsidian-opencode. Source inspection points to CSS-pixel canvas sizing in the embedded xterm image addon and the SIXEL sizing path. Runtime pixel-density verification and a host-side fix remain outstanding. Increasing the plugin's pixelRatio alone does not fix the final canvas resolution.
- Light bottom/right image-edge lines in Obsidian dark mode. Unfilled SIXEL padding, background differences, or scaling may contribute. The precise encoder/decoder cause is not verified. This release does not fix these lines.
Neither problem appeared in the corresponding Ghostty screenshots. This comparison does not establish that Obsidian alone is responsible. No Obsidian integration changes are included. Unicode cells through /latex-render-mode avoid the graphical image path.
Installation
opencode plugin add opencode-latex@0.3.1Replace older npm pins or local development entries so only one LaTeX package is configured. Restart OpenCode terminals after upgrading.
Verification and compatibility
- Typecheck and 44 tests pass on Core 0.9.4 / SDK 2.4.0, Core 0.9.9 / SDK 2.4.2, and Core 0.9.12 / SDK 2.4.3.
- Tests also pass with Bun 1.3.14.
- The existing pi session opens with graphical formulas and matching light backgrounds in Linux Ghostty 1.4.0 / OpenCode 2.4.1.
- The 0.3.1 changes have not been verified on Windows or macOS. Obsidian runtime DPI behavior remains unverified.
- Requires OpenCode 2.4.0+, Core >=0.9.4 <0.10.0, and Bun >=1.3.14. Core 0.7/0.8 still requires separate compatibility adapters. No additional adapter was needed for the tested 0.9.x versions.