Repository navigation
opencode-latex v0.3.0-beta.2
Pre-releaseCompatibility candidate for OpenCode 2.4.x and issue #8. Windows confirmation is pending.
Changes:
- Migrates the Markdown renderer to
block.textandrenderBlock. - Requires OpenCode 2.4.0+ and OpenTUI Core >=0.9.4 <0.10.0.
- Tests against plugin SDK 2.4.2 and Core 0.9.9.
Install on Windows with Node.js/npm available:
$testDir = Join-Path $env:USERPROFILE "opencode-latex-beta"
New-Item -ItemType Directory -Force $testDir | Out-Null
Invoke-WebRequest "https://github.com/kriss-spy/opencode-latex/releases/download/v0.3.0-beta.2/opencode-latex-0.3.0-beta.2.tgz" -OutFile (Join-Path $testDir "opencode-latex-0.3.0-beta.2.tgz")
tar -xzf (Join-Path $testDir "opencode-latex-0.3.0-beta.2.tgz") -C $testDir
Set-Location (Join-Path $testDir "package")
npm installReplace your existing LaTeX entry in opencode.jsonc with the extracted package's absolute path, then restart OpenCode. Preserve your other plugins. Remove the old opencode-latex@0.2.0 entry and any duplicate LaTeX entries.
Use your actual Windows username/path. Forward slashes avoid JSON backslash escaping. To roll back, restore the previous LaTeX entry and restart OpenCode.
This local installation avoids a Git-dependency preparation failure observed with opencode plugin add on Linux OpenCode 2.4.1. The candidate package can also be installed locally on other platforms using the tarball and npm install.
Verification:
- Standards review found no code blocker. Its documentation finding was corrected.
- Specification review found no implementation defect. Prerelease metadata and Windows verification wording were corrected.
- Linux typecheck and all 24 behavior tests pass.
- The extracted candidate passes all 24 tests after installing its dependencies with npm.
- No Windows test or complete OpenCode 2.4.2 session check has been performed. This release does not establish that issue #8 is fixed on Windows.
Please test on Windows 11 with OpenCode 2.4.2 and Windows Terminal. Confirm that a latex fence such as \frac{1}{2} renders as Unicode cells instead of raw source. Confirm that /latex-render-mode still opens and works. Report any installation or rendering error.
Known limitation: issue #7 remains open. SIXEL formula backgrounds can differ from surrounding blocks in Obsidian.
The attached .tgz is the package artifact. SHA256SUMS records its checksum. This is a GitHub prerelease, not an npm publication. npm latest remains 0.2.0, and the stable GitHub release is unchanged.
{ "plugins": ["C:/Users/YOUR_NAME/opencode-latex-beta/package"] }