-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Markdown inline code spans inside pipe tables are not highlighted #57501
Copy link
Copy link
Labels
area:languages/markdownMarkdown markup supportMarkdown markup supportarea:tree-sitterSyntax highlighting and tree-sitterSyntax highlighting and tree-sitterfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usageBugs 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 bugsPapercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduceVerified steps to reproduce included and someone on the team managed to reproduce
Metadata
Metadata
Assignees
Labels
area:languages/markdownMarkdown markup supportMarkdown markup supportarea:tree-sitterSyntax highlighting and tree-sitterSyntax highlighting and tree-sitterfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usageBugs 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 bugsPapercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduceVerified steps to reproduce included and someone on the team managed to reproduce
Type
Fields
Give feedbackNo fields configured for Bug.
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.
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:
Outside table: \inline code`` has the expected inline-code color.| 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.
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