# markdown: Apply theme syntax color to inline code in rendered markdown \(\#54475\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/14f0a254ebee5189fd64f3793e7089c705cb9e49)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 14f0a254ebee5189fd64f3793e7089c705cb9e49

Requested commit: 14f0a254ebee5189fd64f3793e7089c705cb9e49

Commit: 14f0a254ebee5189fd64f3793e7089c705cb9e49

Tree: ea54cf42a071a06efb555cda0005902767d84d14

Author: Kento Yamamoto

Committer: GitHub

## Message

```
markdown: Apply theme syntax color to inline code in rendered markdown (#54475)

## Summary

Inline code in rendered markdown previously used only the default
foreground color with a subtle background tint, which made it visually
indistinguishable from surrounding prose in some themes.

This change looks up the `text.literal` syntax style from the active
theme and applies its color to inline code, matching the treatment used
for inline code elsewhere in the editor (e.g. syntax highlighting in
source buffers). When the theme does not define `text.literal`, the
color falls back to the previous default.


Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Improved inline code in rendered markdown to use the theme's
`text.literal` syntax color
```

## Parents

- [3cd0f4c419387572be17c5175d2ec2ffdc4d3bb5](https://git.cafe/gitcafe/zed/commit/3cd0f4c419387572be17c5175d2ec2ffdc4d3bb5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/14f0a254ebee5189fd64f3793e7089c705cb9e49?format=markdown)
