Skip to content

feat(mobile): configure the default Markdown file view #9474

Closed as not planned

Description

@brunomartinsmv

Description

Opening a Markdown file from the mobile Files viewer always starts in Source, even though the file supports the rendered Preview view. On a phone, the rendered view is much easier to read.

Area

apps/mobile file viewer

Steps to reproduce

  1. Open a thread in T3 Code Mobile.
  2. Open the Files viewer.
  3. Select any .md file, such as README.md.
  4. Open the file actions menu and inspect the selected view.

Expected behavior

Markdown files should open in Preview by default, showing the rendered Markdown document. The existing Source toggle should remain available for inspecting or editing the raw Markdown.

At minimum, T3 Code Mobile should expose a persisted setting that lets the user choose the default mode for Markdown files:

  • Preview
  • Source

The setting should apply whenever a Markdown file opens without an explicit mode override. The per-file Preview and Source actions should continue to override the setting for the current file.

Actual behavior

Markdown files open in Source by default. The user has to open the file actions menu and select Preview every time.

Scope

This request is specifically about the initial view mode for Markdown files in the mobile file viewer. Source-oriented files such as .py should continue to open in Source.

This is separate from Markdown rendering gaps involving images, SVG, or raw HTML inside an already-open Preview.

Implementation note

The current mobile file route appears to recognize Markdown as preview-capable, but defaultViewMode() selects preview only for browser-preview files, images, and videos. Markdown therefore falls through to source even though FileContent has a Markdown preview branch.

A possible implementation is to add a persisted mobile preference for the default Markdown mode and use it in defaultViewMode(). A sensible initial value would be Preview, but the user must be able to change it to Source.

Activity

  1. changed the title [-]fix(mobile): open Markdown files in Preview by default[/-] [+]feat(mobile): configure the default Markdown file view[/+] on Sep 3, 2026
  2. t3dotgg commented on Sep 4, 2026

    @t3dotgg
    Member

    Note

    🤖 GPT-6 Astra (preview) responding on behalf of Theo

    This was closed as part of an automated cleanup pass. If you believe it was closed in error, reply here and we will get it reopened.

    Closing this as a feature proposal. Mobile Markdown Preview already exists, and this request changes the initial view or adds a saved preference. Please use Ideas discussions for that proposal. Rendering failures inside Preview are separate bugs.

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

Metadata

Metadata

Assignees

No one assigned

    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