diff options
| author | cashmere <cashmere@autistici.org> | 2026-04-26 20:36:04 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-04-26 20:36:04 +0200 |
| commit | baa6cf8cc43ce676b806db01e390668dc4aa6790 (patch) | |
| tree | 103e8d459f7f3a79dd7985f9b36f8ff263a672ad /docs/text-sizing-protocol.md | |
| parent | 7e4faffa32d6f0ef885fceb0a9ecd93b3fe5c43f (diff) | |
| download | kitty-graphics-baa6cf8cc43ce676b806db01e390668dc4aa6790.tar.gz | |
feat: add typst inline equation preview
Mirrors the existing LaTeX fragment integration but uses the `typst`
CLI to compile `$...$' math fragments into PNGs that are then displayed
inline through the existing kitty-graphics overlay pipeline.
- New section in kitty-graphics.el: customs (typst-command, ppi,
text-size, preamble), SHA-1 cached PNGs under /tmp/kitty-gfx-typst,
Emacs face-foreground -> typst rgb() hex conversion.
- Two autoloaded commands: `kitty-gfx-typst-preview' and
`kitty-gfx-typst-clear-preview', region-aware.
- Regex skips backslash-escaped dollars (\\$not math\\$).
- justfile with recipes: compile/lint/load + per-feature test-* and
headless typst-render / typst-show.
- tests/test-typst.typ fixture with inline, display, mixed and
edge-case fragments.
- AGENTS.md updated: test instructions, dependency note, issue marked
done.
Closes #7. Parent #5.
Diffstat (limited to 'docs/text-sizing-protocol.md')
0 files changed, 0 insertions, 0 deletions
