Repository navigation
opencode-latex v0.2.1
This release restores graphical LaTeX rendering alongside OpenCode's built-in Unicode renderer on OpenCode 2.2.2 / Core 0.7.x.
- Uses
io.github.kriss-spy.opencode-latexandio.github.kriss-spy.opencode-latex.tuiIDs. The externallatexrenderer takes precedence; built-inmathremains available. - Replaces the Core
<0.6.0workaround with host-runtime compatibility. Adapts the removed Yoga API and uses public, host-owned native images. Addresses the load failure tracked in #6 for this supported host version. - Reuses padded SIXEL images across movement and delegates transparency/encoding to native OpenTUI. This removes JavaScript image reconstruction while scrolling. The reported Obsidian latency in #3 has not been retested in that terminal.
- Explains when OpenCode's built-in Unicode renderer suffices and when MathJax images are useful. Preserves and packages the README demos.
Requirements and migration:
- Requires OpenCode 2.2.2 with Core 0.7.x. Older hosts are outside this release's compatibility scope.
- The renamed TUI ID resets the saved render-mode preference. Select the mode again after updating. ID-based selectors must use the new IDs.
- SIXEL now uses Core's native alpha handling instead of JavaScript background compositing. It does not provide Kitty-style alpha blending.
Validation passed:
bun run check: type checking and 24 tests.npm pack --dry-run: nine required files, including both demo images.- Clean tarball installation, server/TUI import checks, and Kitty/SIXEL native paint checks.
- Installed OpenCode 2.2.2: built-in and external plugin setup both succeed; the external callback paints a forced-Kitty MathJax formula.
Actual Ghostty/Kitty and Obsidian visual appearance, interactive scrolling, and physical terminal negotiation have not been manually verified for this release.
npm publication is pending. The publish attempt returned 404, and npm whoami returned 401. The tested package is attached as opencode-latex-0.2.1.tgz. After npm access is restored, publish this same tarball.