# grammars: Highlight markdown code spans in tables \(\#57506\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 450206e49dd070866dce81884bac61caa56dba44

Requested commit: 450206e49dd070866dce81884bac61caa56dba44

Commit: 450206e49dd070866dce81884bac61caa56dba44

Tree: 1a398e111347ac5729d3902adf733e107ae1b8e0

Author: liam

Committer: GitHub

## Message

```
grammars: Highlight markdown code spans in tables (#57506)

Resolves https://github.com/zed-industries/zed/issues/57501

This diff fixes Markdown inline syntax highlighting inside pipe table
cells. The block Markdown parser represents table content as
`pipe_table_cell` nodes rather than `inline` nodes, so Zed’s existing
`markdown-inline` injection ran for paragraph text but skipped code
spans inside tables.

With this change, table cells also inject `markdown-inline`, allowing
existing inline highlighting to handle code spans consistently between
paragraph text and table cells.

| Before | After |
| --- | --- |
| <img width="500" alt="Before screenshot"
src="https://github.com/user-attachments/assets/bdb75c18-9f20-4f3c-bea6-946194098db6"
/> | <img width="500" alt="After screenshot"
src="https://github.com/user-attachments/assets/23ae7bc5-5208-4dc7-ab6f-d07404aeae06"
/> |

Release Notes:

- Fixed Markdown inline code highlighting in table cells.
```

## Parents

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

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