<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kitty-graphics/tests/test-typst.typ, branch master</title>
<subtitle></subtitle>
<id>http://git.cashmere.rs/kitty-graphics/atom/tests/test-typst.typ?h=master</id>
<link rel='self' href='http://git.cashmere.rs/kitty-graphics/atom/tests/test-typst.typ?h=master'/>
<link rel='alternate' type='text/html' href='http://git.cashmere.rs/kitty-graphics/'/>
<updated>2026-04-26T18:36:04Z</updated>
<entry>
<title>feat: add typst inline equation preview</title>
<updated>2026-04-26T18:36:04Z</updated>
<author>
<name>cashmere</name>
<email>cashmere@autistici.org</email>
</author>
<published>2026-04-26T18:36:04Z</published>
<link rel='alternate' type='text/html' href='http://git.cashmere.rs/kitty-graphics/commit/?id=baa6cf8cc43ce676b806db01e390668dc4aa6790'/>
<id>urn:sha1:baa6cf8cc43ce676b806db01e390668dc4aa6790</id>
<content type='text'>
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 -&gt; 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.
</content>
</entry>
</feed>
