Skip to content

Markdown inline code spans inside pipe tables are not highlighted #57501

@dev-itsheng

Description

@dev-itsheng

Reproduction steps

本 issue 使用 codex 生成。This issue draft was prepared with Codex from a user-observed behavior report and a user-provided screenshot. The reporter reviewed the behavior and is filing it through the official Zed bug report template.

  1. Start Zed with a Markdown file.
  2. Use a clean minimal Markdown sample:
Outside table: `inline code`

| Name | Value |
| --- | --- |
| field | `inline code` |
  1. Observe the syntax highlighting in the editor, not only in Markdown Preview.

This does not depend on a fenced code block language. It is about Markdown inline code span styling itself.

Current vs. Expected behavior

Current behavior:

The inline code span in normal paragraph text is highlighted correctly. In the same Markdown file and theme, the inline code span inside a pipe table cell is not highlighted with the same inline-code styling.

In the reporter's screenshot:

  • Line 1: Outside table: \inline code`` has the expected inline-code color.
  • Line 5: | field | \inline code` |` keeps the table text styling instead of applying inline-code highlighting.

Expected behavior:

Both occurrences should receive the same Markdown inline-code syntax highlighting/styling:

  • Outside table: \inline code``
  • | field | \inline code` |`

Why this looks like a Zed Markdown highlighting issue:

The issue does not appear to be caused by the theme alone, because inline code outside the table is highlighted correctly in the same file and theme. Other Markdown editors such as Visual Studio Code, WebStorm, and Sublime Text highlight inline code spans inside tables with the same inline-code styling used outside tables.

A likely area to inspect may be Markdown highlighting for pipe table nodes and whether markdown-inline highlighting is being applied inside table cells.

Image

Zed version and system specs

Zed: v1.4.1+preview.287.084505b1bbdcf5047ff8438658492ed738a3b9f4 (Zed Preview)
OS: macOS 26.4.1
Memory: 32 GiB
Architecture: aarch64

Attach Zed log file

Not relevant for this Markdown syntax highlighting issue.

Relevant Zed settings

No relevant custom settings identified. The behavior was observed in the editor syntax highlighting for a Markdown file.

Relevant Keymap

Not relevant.

(for AI issues) Model provider details

Not an AI feature issue.

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:languages/markdownMarkdown markup supportarea:tree-sitterSyntax highlighting and tree-sitterfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions