You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Add markdown preview toggle in file viewer sidebar #14187
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
When viewing markdown files (.md, .mdx) in the file viewer sidebar, users currently see raw markdown with syntax highlighting. It would be helpful to have an option to render the markdown as formatted content.
Right now md files are effectively state for my non-coding use cases and I would like to view them formatted.
TLDR: Help me uninstall Obsidian
Reacted by Tristan Helmich, Brendan Irvine-Broque, Mike Nomitch, Alexandre Fernandes, Jonas, briangruntable, Rico Sta. Cruz, Motoi Washida, rcairnsg, lenstr and 19 more
@briangruntable@southpolesteve If you are also using OpenCode remotely, such as OpenCode web. You can give my newly created OpenMKView a try.
The project is still in the development stage, but the basic functions have all been completed. For now, it hasn't been packaged (released) yet. You may need use 'npm run dev' or package manually yourself.
+1, this is exactly the issue I hit. Opened a duplicate (#30549) before finding this and have already closed it. Would love native Markdown rendering in the Desktop file viewer — README/AGENTS.md/docs/changelogs are part of the daily coding flow and switching to Obsidian/VS Code just to read them breaks the workflow.
Hi! We took a stab at this in our fork and would love feedback on whether the direction fits upstream — happy to open a PR if so.
What we built:
A segmented Preview / Source toggle on markdown file tabs (.md/.mdx/.markdown) in the file viewer — visually following the mockup suggested earlier in this thread. Defaults to Source, so existing behavior is unchanged.
Preview renders through the app's existing Markdown component (marked + shiki pipeline), so highlighting, KaTeX, sanitization and copy buttons all come for free.
Bonus: ```mermaid fences render as actual diagrams — lazy-loaded client-side after DOMPurify, with invalid/still-streaming sources gracefully keeping the highlighted code. Works in chat messages too.
Diagrams support ctrl/cmd+scroll zoom (anchored at the cursor), drag-to-pan when zoomed, double-click to reset. No new dependency besides lazy-loaded mermaid itself.
Two small dark-theme fixes to the segmented control fell out of this (indicator contrast + selected icon color).
Does this approach look right to you all? If so we'll rebase onto dev and open a PR.
Reacted by kiruno, Abiel Zulio M, asvetlosakTB, PolyCrusher, Marvin Kruse, Alexander Khamidulin, Kreß ALSVV, mirorac, Sebastián Soto Ángel, crydafan and 1 more
Activity
JonasGao commentedon Feb 25, 2026
If preview with a outline will be better better 😁
briangruntable commentedon Feb 28, 2026
Agree with this. Currently using obsidian just to read it
JonasGao commentedon Feb 28, 2026
@briangruntable @southpolesteve If you are also using OpenCode remotely, such as OpenCode web. You can give my newly created OpenMKView a try.
The project is still in the development stage, but the basic functions have all been completed. For now, it hasn't been packaged (released) yet. You may need use 'npm run dev' or package manually yourself.
https://github.com/dev-zapi/openmkview
fengzhi09 commentedon Mar 25, 2026
mermaid 展示也需要
Kiruno-lz commentedon Apr 20, 2026
Agree with this
Without markdown rendering, it will really be hard to read.
Especially when there are a lot of md files that need to be reviewed.
At present, trae is used to review and commit, hoping to fully support it on opencode.
Rafik-Belkadi-Reccap commentedon May 20, 2026
Up, still reviewing raw markdown, painful
codehuang-copilot commentedon Jun 3, 2026
+1, this is exactly the issue I hit. Opened a duplicate (#30549) before finding this and have already closed it. Would love native Markdown rendering in the Desktop file viewer — README/AGENTS.md/docs/changelogs are part of the daily coding flow and switching to Obsidian/VS Code just to read them breaks the workflow.
mlucascardoso commentedon Jun 13, 2026
Hi! We took a stab at this in our fork and would love feedback on whether the direction fits upstream — happy to open a PR if so.
What we built:
.md/.mdx/.markdown) in the file viewer — visually following the mockup suggested earlier in this thread. Defaults to Source, so existing behavior is unchanged.Markdowncomponent (marked + shiki pipeline), so highlighting, KaTeX, sanitization and copy buttons all come for free.```mermaidfences render as actual diagrams — lazy-loaded client-side after DOMPurify, with invalid/still-streaming sources gracefully keeping the highlighted code. Works in chat messages too.mermaiditself.Dark — Source / Preview:
Light — Preview / Zoomed diagram (ctrl+scroll):
Branch with the 6 commits: https://github.com/mlucascardoso/opencode/tree/markdown-mermaid
Does this approach look right to you all? If so we'll rebase onto
devand open a PR.github-actions commentedon Aug 12, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
papue commentedon Oct 4, 2026
+1, it's really painful ...