[FEATURE]: Markdown Preview/Source Toggle in File Editor #9381

Closed
opened 2026-02-16 18:12:19 -05:00 by yindo · 2 comments
Owner

Originally created by @kimi-chen on GitHub (Feb 15, 2026).

Originally assigned to: @rekram1-node on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

What problem this solves / need addressed

Currently, it is difficult to review markdown files visually in the file editor. Users must interpret raw markdown syntax, which is less accessible, especially for those unfamiliar with markdown formatting. This makes it challenging to quickly check formatting and content appearance.

Requested enhancement/context

Add a "Markdown Preview/Source" toggle button at the top-right corner of the file editor. The toggle should allow users to seamlessly switch between editing markdown source code and previewing how the document appears when rendered. Please clarify if this should be available in TUI, Desktop, Web, or all platforms. For now, I am requesting it for the main file editor (please specify if needed).

Expected behavior

  • When editing a markdown file in the editor, the user sees a toggle button in the top-right corner.
  • Clicking "Preview" displays the rendered markdown (formatted text, links, images, etc).
  • Clicking "Source" returns to editing the raw markdown text.
  • The feature should be intuitive and quick to switch.

Current behavior/limitation

  • No preview option exists, only code view.
  • Users must manually open their markdown files elsewhere to see formatted results.

Mockup example

Preview Mode


Image

Source Mode


Image
Originally created by @kimi-chen on GitHub (Feb 15, 2026). Originally assigned to: @rekram1-node on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request **What problem this solves / need addressed** Currently, it is difficult to review markdown files visually in the file editor. Users must interpret raw markdown syntax, which is less accessible, especially for those unfamiliar with markdown formatting. This makes it challenging to quickly check formatting and content appearance. **Requested enhancement/context** Add a "Markdown Preview/Source" toggle button at the top-right corner of the file editor. The toggle should allow users to seamlessly switch between editing markdown source code and previewing how the document appears when rendered. Please clarify if this should be available in TUI, Desktop, Web, or all platforms. For now, I am requesting it for the main file editor (please specify if needed). **Expected behavior** - When editing a markdown file in the editor, the user sees a toggle button in the top-right corner. - Clicking "Preview" displays the rendered markdown (formatted text, links, images, etc). - Clicking "Source" returns to editing the raw markdown text. - The feature should be intuitive and quick to switch. **Current behavior/limitation** - No preview option exists, only code view. - Users must manually open their markdown files elsewhere to see formatted results. **Mockup example** *Preview Mode* --- <img width="407" height="322" alt="Image" src="https://github.com/user-attachments/assets/48ab4b87-6b1b-4205-82c8-7088e5940fff" /> *Source Mode* --- <img width="409" height="314" alt="Image" src="https://github.com/user-attachments/assets/1cfd57da-ab10-46dd-b736-5f271ef21f41" />
yindo added the discussionneeds:compliance labels 2026-02-16 18:12:19 -05:00
yindo closed this issue 2026-02-16 18:12:19 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 15, 2026):

This issue doesn't fully meet our contributing guidelines.

What needs to be fixed:

  • Incomplete title: The title is just [FEATURE]: with no description. Please add a clear, concise title describing the feature (e.g., [FEATURE]: Markdown Preview/Source Toggle in File Editor)
  • Insufficient description: The enhancement description is too brief and unclear. Please provide:
    • What problem this solves or what need it addresses
    • Clear steps or context about what you want to do
    • Expected behavior (what should happen when using this feature)
    • Current behavior (what's the limitation now)
    • Any mockups or visual examples if helpful
  • Typo and grammar: "mockdown" should be "markdown", and phrasing needs improvement (e.g., "so you can view" instead of "so can view")
  • Missing context: Which file editor or component should have this toggle? (TUI, Desktop, Web?)

Please edit this issue to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions[bot] commented on GitHub (Feb 15, 2026): <!-- issue-compliance --> This issue doesn't fully meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md). **What needs to be fixed:** - **Incomplete title**: The title is just `[FEATURE]:` with no description. Please add a clear, concise title describing the feature (e.g., `[FEATURE]: Markdown Preview/Source Toggle in File Editor`) - **Insufficient description**: The enhancement description is too brief and unclear. Please provide: - What problem this solves or what need it addresses - Clear steps or context about what you want to do - Expected behavior (what should happen when using this feature) - Current behavior (what's the limitation now) - Any mockups or visual examples if helpful - **Typo and grammar**: "mockdown" should be "markdown", and phrasing needs improvement (e.g., "so you can view" instead of "so can view") - **Missing context**: Which file editor or component should have this toggle? (TUI, Desktop, Web?) Please edit this issue to address the above within **2 hours**, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know.
Author
Owner

@github-actions[bot] commented on GitHub (Feb 15, 2026):

This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new issue that follows our issue templates.

@github-actions[bot] commented on GitHub (Feb 15, 2026): This issue has been automatically closed because it was not updated to meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md) within the 2-hour window. Feel free to open a new issue that follows our issue templates.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9381