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

[View on GitCafe](https://git.cafe/flambo/t3code/commit/6b55b07089733e4ac51e5cc44759efc8067667fe)

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

Visibility: public

Requested revision: 6b55b07089733e4ac51e5cc44759efc8067667fe

Requested commit: 6b55b07089733e4ac51e5cc44759efc8067667fe

Commit: 6b55b07089733e4ac51e5cc44759efc8067667fe

Tree: 6dfa4a6732adfd79e29c5f607cabe4a3a245700b

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

- [d48b42c0174f7ed26de8fdd1b0f4f75c82c71fe7](https://git.cafe/flambo/t3code/commit/d48b42c0174f7ed26de8fdd1b0f4f75c82c71fe7?format=markdown)

[Source at this commit](https://git.cafe/flambo/t3code/tree/6b55b07089733e4ac51e5cc44759efc8067667fe?format=markdown)
