Skip to content

Web UI: markdown files open as raw source in the file viewer instead of rendered markdown #48198

Description

@MatthiHerz

Environment

  • opencode 1.18.21 (linux, opencode serve on a remote VM), web app file viewer (opened via the file browser)
  • reproduced from desktop and phone browsers

What happens

Opening a .md file from the file browser shows the raw markdown source text (headings, pipes, backticks as-is) — no rendered preview.

Expected

Markdown files render in the viewer (headings, lists, tables, code blocks), the way GitHub and most file viewers do. Raw source could stay available behind a toggle.

Use case

Reviewing agent-written docs/PRDs/changelogs is a core "check what the agent produced" flow, especially from a phone where reading raw markdown is painful. (Related narrow-viewport issue for the file browser itself: #48197.)

Happy to provide examples or test a fix if useful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions