Skip to content

feat(desktop): render inline and display TeX natively - #187

Merged
bketelsen merged 2 commits into
feat/native-line-stylesfrom
feat/native-math
Nov 11, 2026
Merged

bketelsen merged 2 commits into
feat/native-line-stylesfrom
feat/native-math

Conversation

@bketelsen

@bketelsen bketelsen commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Render inline and display TeX in reading views and live preview with native vector glyph paths. Selected lines reveal their source. Invalid, unsupported, or oversized expressions retain source; formulas use a bounded per-view cache and the theme's text color.

Closes #147. Stacked on #188.

Risk tier

Risk tier: 3 — matched L1 paths internal/desktop/editor/live.go and internal/desktop/reading/view.go. The renderer is pure Go, runs no note script or external process, and receives bounded source. Generated SVG is size-bounded and drawn by MyGo. The module is pinned; Flatpak sources are regenerated.

Docs housekeeping

ADR-0041 records the renderer choice, starts from the ADR template, is indexed and linked both ways with design, spec and plan.

Verification

  • mise exec -- make check and make desktop-build passed on the final implementation.
  • Formula tests verify visible vector output for scripts, fractions, roots and sums; malformed and oversized input falls back.
  • Scanner tests cover inline/display math and source reveal on selection.

Merge order

Stacked on #188; merge that PR first, then retarget this PR to main. Preserve ancestry with merge commits, or rebase the remaining branches after a squash merge. Full order: #181 → #182 → #183 → #184 → #185 → #186 → #188 → #187 → #189 → #190.
The final branch contains the combined fixes. CI and Flatpak workflows were dispatched on that branch because PR CI is restricted to a main base.

@github-actions github-actions Bot added level:L1 Read every line risk:high Touches a path in .github/risk-paths.json labels Nov 11, 2026
# Conflicts:
#	docs/README.md
#	docs/design/app.md
#	docs/specs/ui.md
#	go.mod
#	internal/desktop/reading/view.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L1 Read every line risk:high Touches a path in .github/risk-paths.json

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant