Typst is missing from the chat code-block language picker
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.901.51231
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Darwin 25.6.0 arm64 arm
What issue are you seeing?
Typst is missing from the language picker for code blocks in Codex App chats. As a result, a chat code block cannot be explicitly set to Typst and does not receive Typst syntax highlighting.
What steps can reproduce the bug?
- Open a chat in the Codex App.
- Create or receive a fenced code block containing Typst source.
- Open the code block's language picker.
- Search for
Typstortypst.
Typst is not listed.
Example:
#set page(width: 10cm)
= Hello, Codex
What is the expected behavior?
The language picker should offer Typst, and selecting it should apply Typst syntax highlighting to the code block.
Additional information
No matching open or closed issue was found by searching this repository for Typst syntax highlighting.
The packaged app already contains Shiki's Typst grammar, including the typ alias and .typ file mapping. However, the chat code-block path uses a separate hardcoded highlight.js language registry, and Typst is absent from that registry. This appears to explain why Shiki's existing Typst support does not reach the chat language picker.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the chat code-block language picker and its separate hardcoded highlight.js language registry; verify how the packaged Shiki Typst grammar is unrelated to this path. Done means searching for Typst finds it in the picker, and selecting it applies Typst syntax highlighting to the provided fenced example.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 75/100