Mobile Markdown files should allow a configurable default view #9711
brunomartinsmv
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Proposal
Opening a Markdown file from the mobile Files viewer always starts in
Source, even though the file supports the renderedPreviewview. On a phone, the rendered view is much easier to read.Current behavior
When opening a
.mdfile on mobile, T3 Code starts inSource. The user can switch toPreviewmanually, but the choice is not persisted as a default.The mobile file route recognizes Markdown as preview-capable, but
defaultViewMode()selectspreviewonly for browser-preview files, images, and videos. Markdown therefore falls through tosource.Proposed behavior
Ideally, Markdown files should open in
Previewby default.At minimum, T3 Code Mobile should expose a persisted setting that lets the user choose the default mode for Markdown files:
PreviewSourceThe setting should apply whenever a Markdown file opens without an explicit mode override. The per-file
PreviewandSourceactions should continue to override it for the current file. Source-oriented files such as.pyshould continue to open inSource.Why
The rendered Markdown view is considerably easier to read on a phone. Starting in
Sourceadds an extra tap every time and makes the mobile file viewer feel less tailored to Markdown documents.This proposal follows closed issue #9474, which was redirected here by the maintainers.
This is separate from rendering bugs involving images, SVGs, or raw HTML inside an already-open Markdown preview.
All reactions