Markdown blockquote body has no syntax highlighting target #54891
keithgw
started this conversation in
Feature Requests
Replies: 2 comments
|
Plus +1 , it's very needed feature for markdown files for mee |
0 replies
|
I personally always customize blockquotes to be italic and a different color to differentiate them from regular paragraphs, so I've been really missing this from VSCode |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Markdown blockquote bodies render as default body text in every Zed theme, because the
block_quoteparagraph isn't given its own tree-sitter capture in the markdown grammar. The>marker gets@punctuation.markup(dim), but the quoted paragraph itself inherits the generic@textcapture, so themes have nothing distinct to color.This means quoted passages are visually indistinguishable from surrounding prose, even on themes that style headings, code, and links well.
Repro
Open a markdown file with a blockquote in any theme:
Regular paragraph text. > A quoted passage that should look visually distinct. More regular paragraph text.The quote body looks identical to the surrounding paragraphs.
Prior art
Issue #10660 ("Blockquotes Styling") raised this in 2024-04. A Zed contributor sketched a fix in that thread:
The issue was auto-closed in the feature-request cleanup before the patch landed. Reopening as a Discussion per the new process.
Proposed direction
block_quotecapture incrates/grammars/src/markdown/highlights.scmthat tags the body paragraph distinctly (e.g.,@text.quoteor@text.block_quote, whichever name fits Zed's existing syntax-key conventions).Related: #9461 ("Support more syntax tokens for theme configuration") tracks the broader gap; this is a concrete, scoped instance.
Why it matters
Markdown is a primary use case for many Zed users (notes, READMEs, docs, retros). Blockquotes are a universal element, and the lack of distinct styling is one of the more visible markdown gaps versus other editors (Sublime, VS Code, Helix all style quotes by default).
All reactions