# Add inline code blocks in markdown preview \(\#7277\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 980d4f1003e8bee5d9117440334aaf4eb97fc4f0

Requested commit: 980d4f1003e8bee5d9117440334aaf4eb97fc4f0

Commit: 980d4f1003e8bee5d9117440334aaf4eb97fc4f0

Tree: df91da3d92efb38d2155ce2033577f0688580d51

Author: Robin Pfäffle

Committer: GitHub

## Message

```
Add inline code blocks in markdown preview (#7277)

Fixes #7236.

The reason why the code was not displayed correctly is due to missing
background color for the inline code block.

Previously to this PR:

<img width="1840" alt="SCR-20240202-mclv"
src="https://github.com/zed-industries/zed/assets/67913738/92f63e72-db86-4de9-bb42-40549679e159"
alt="Screenshot showing that inline code blocks are not highlighted in
Markdown preview">

After this PR:

<img width="1796" alt="SCR-20240202-mccs"
src="https://github.com/zed-industries/zed/assets/67913738/5cf039af-82d7-41b8-b461-f79dec5ddf6a"
alt="Screenshot showing that inline code blocks are now highlighted in
Markdown preview">



Release Notes:

- Fixed inline code block not shown in markdown preview
([#7236](https://github.com/zed-industries/zed/issues/7236)).
```

## Parents

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

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