Feature Request: Custom Markdown Preview Theming / Styling #43384
Replies: 13 comments 7 replies
-
|
Option 3: 1 or 2 or 1→2
(Does this make sense? I haven't looked specifically what the syntax could look like yet.) |
Beta Was this translation helpful? Give feedback.
-
|
For now, it would be enough for me if, instead of using As it stands, I can't really use it—it bothers my eyes. By the way, the same thing happens with commits (background = |
Beta Was this translation helpful? Give feedback.
-
|
Bumping this thread with a narrower proposal, since the original suggestions (custom CSS, full theme-schema markdown styling) are both fairly large surface-area changes that may be why no PR has materialized. The pain: in current Zed, h1/h2/h3 in the markdown preview render at nearly identical sizes, so document hierarchy is essentially invisible. This is increasingly relevant as more people use Zed as a lightweight markdown viewer alongside agentic coding tools (Claude Code, Cursor, etc.) where reading AI-generated plans, specs, and reports is a daily activity. For that use case Zed is an excellent minimal alternative to VS Code — except the markdown rendering undersells it. Minimal proposal: add a "markdown_preview": {
"heading_scale": [2.0, 1.6, 1.3, 1.15, 1.05, 1.0]
}Multipliers on Questions before I open a PR:
Happy to sign the CLA, write tests, and include before/after screenshots. Would rather check before sinking a weekend into it. |
Beta Was this translation helpful? Give feedback.
-
|
there is some great ideas here. Current markdown preview is hard to look at, even editor is better than the preview. Markdown is more important than code nowadays, without it, the ide by itself is not enough @defunkt |
Beta Was this translation helpful? Give feedback.
-
|
I think just a slightly better default styling would be a great place to start. To echo @thorizer the current markdown preview is hard to parse visually. There are several sources of inspiration that do a better job at the moment, and seem to be broadly appealing: Cursor's markdown preview, Bear (the Mac App), Notion, Graphite, even GitHub itself. Honestly if Zed had more or less visual parity with GitHub's README markdown I think I'd be a happy camper, and my need for a fully custom theme would be greatly reduced. |
Beta Was this translation helpful? Give feedback.
-
|
I agree with @samvaran, just a better default viewer similar to GitHub's would make me happy. |
Beta Was this translation helpful? Give feedback.
-
|
Coming here to echo the sentiment, the current markdown preview is terrible to the point reading the markdown in the editor is better (not ideal though). Sounds like an easy fix for a fast growing demand and necessity. |
Beta Was this translation helpful? Give feedback.
-
|
I've been spending way less time vibe-coding with source code open side by side. There's a rapidly growing need for a beefed-up Markdown Preview that lets you comment and interact at the spec layer — basically turning it into a lightweight editor for design docs. |
Beta Was this translation helpful? Give feedback.
-
|
Just the ability to change the colors in zed's theme for MD preview would be great. |
Beta Was this translation helpful? Give feedback.
-
|
One of the things I'd really like to see if support for Wikilinks so that Zed can be a replacement for Obsidian.
I'll open a PR when someone from Zed confirms ya'll are interested in this functionality. |
Beta Was this translation helpful? Give feedback.
-
|
I have been spending more and more time reading and reviewing md, and the current preview is awful. I often end up switching to another app just to preview the markdown properly, because reviewing it here is difficult. +1 to custom styling, even for the default opinionated preview, better spacing would make a huge difference |
Beta Was this translation helpful? Give feedback.
-
|
Yes, markdown preview should be themeable/customizable. |
Beta Was this translation helpful? Give feedback.
-
|
INT. U.S.S. ENTERPRISE-D — BRIDGE PICARD sits in the command chair, tea in hand. The tea has gone cold. He knows it, and he drinks it anyway, as penance. PICARD COMPUTER (V.O.) PICARD He rises. Tugs his uniform. PICARD (CONT'D) RIKER PICARD He turns to the science station. PICARD (CONT'D) DATA PICARD DATA WORF DATA WORF DATA A silence. WORF looks personally offended by the entire concept. PICARD DATA PICARD TROI PICARD (he stops himself; composes) The Romans had a senate that debated endlessly while executive power sat elsewhere, indifferent. At least the senators were paid. RIKER PICARD RIKER PICARD Beat. He straightens. PICARD (CONT'D) COMPUTER (V.O.) PICARD closes his eyes. Holds. Opens them. PICARD SMASH CUT TO BLACK. (Author: Fable, prompted and prodded by myself) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Requesting the ability to customize the styling (CSS) of the Markdown Preview pane independently of the main editor theme.
The current reliance on the editor's theme prevents users from:
Ensuring Consistency: The preview often doesn't match the final published look of documentation (e.g., GitHub Pages, wikis), which breaks visual parity.
Improving Readability: Users cannot adjust typography (e.g., line height, spacing, or header sizes) specifically for the reading experience without changing their entire coding theme.
Proposed Solution / Implementation Ideas
We propose adding a mechanism for custom styling the Markdown Preview content:
Option 1: Dedicated CSS File Support (Preferred)
Allow users to inject one or more custom CSS files via settings.json (relative to home or workspace).
{ "languages": { "Markdown": { "preview_styles": [ "~/.config/zed/markdown_preview.css" ] } } }Option 2: Theme-Specific Overrides
Allow theme authors to define specific style properties for rendered Markdown elements (headings, links, lists) within the theme schema itself.
This flexibility will greatly enhance Zed's utility for documentation and technical writing.
Beta Was this translation helpful? Give feedback.
All reactions