# Use shared Shiki highlighting for chat markdown code blocks · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/2980a853e567d97b9e27a9409ecd98a60c4ae42a)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 2980a853e567d97b9e27a9409ecd98a60c4ae42a

Requested commit: 2980a853e567d97b9e27a9409ecd98a60c4ae42a

Commit: 2980a853e567d97b9e27a9409ecd98a60c4ae42a

Tree: be5e58388f1946a1aaa2e456e3f04e8ef9b44ce5

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Use shared Shiki highlighting for chat markdown code blocks

- Replace `rehype-highlight`/`highlight.js` with `@pierre/diffs` highlighter in `ChatMarkdown`
- Add LRU caching and in-flight dedupe for highlighted code, with streaming-aware behavior
- Extract shared diff theme resolution utility and add unit tests for new LRU cache

```

## Parents

- [56de1465fa81eadc3c09140f7fff1579299e3bad](https://git.cafe/pingdotgg/t3code/commit/56de1465fa81eadc3c09140f7fff1579299e3bad?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/2980a853e567d97b9e27a9409ecd98a60c4ae42a?format=markdown)
