Help & Documentation
Markdown Viewer for Google Drive™
Getting started
Install the app from the Google Workspace Marketplace. Once installed,
right-click any .md file in Google Drive and choose
Open with → Markdown Viewer.
You can also select up to 20 files at once in Google Drive (Shift-click or Ctrl/Cmd-click to multi-select) and choose Open with → Markdown Viewer to open them all together. A file picker will appear in the top bar, letting you switch between the open files at any time.
Rendering overview
The viewer renders your Markdown file using full CommonMark support via markdown-it, including syntax-highlighted code blocks (highlight.js), GFM extensions (tables, footnotes, task lists, highlights, subscript, superscript), automatic anchor links on headings for in-page navigation, and Mermaid diagrams.
Mermaid diagrams
Code blocks tagged mermaid are drawn as diagrams
(see the Mermaid syntax reference).
Every diagram type of Mermaid 12 is supported —
flowcharts, sequence, class, state, entity-relationship, Gantt, pie, mind maps,
timelines, Git graphs and more — except ZenUML, which is a separate plugin.
Math in labels ($$…$$) and the ELK layout (layout: elk) work too.
Diagrams are drawn as they come into view, so a long file with many diagrams opens as quickly as one without; until then you see the diagram's source. They follow the light or dark theme (a theme set inside the diagram is ignored), and links in a diagram open in a new tab.
If a diagram contains an error, its source stays visible with Mermaid's error message underneath, which usually points to the line and position of the problem.
Zoom and pan
Hover over a diagram and click the expand button in its top-right corner (on touch screens the button sits below the diagram) to open it in a full-window view, where it stays sharp at any zoom level:
- Move — drag with the mouse or a finger, or use the arrow keys.
- Zoom — mouse wheel, trackpad or touch pinch, double-click, the zoom buttons at the bottom, or the + / - keys.
- Fit — the fit button or 0 shows the whole diagram again.
- Close — the close button or Esc.
Diagrams are drawn in an isolated sandbox: they cannot run scripts or access the file or your account. Mermaid is downloaded only when a diagram is about to be shown.
Working with multiple files
When you open more than one file at the same time, a file picker appears in the top bar, next to the file name. Click it to see the list of open files and jump to any of them — the active file is marked so you always know where you are, and the page title updates to match.
Only the first file is loaded immediately; the others are fetched on demand the first time you open them from the picker. You may briefly see a loading spinner while the content is retrieved — this keeps the app fast even when you open many files at once.
You can keep up to 20 files open in a single session. If you select more than 20 files in Google Drive, the viewer will ask you to reduce the selection before opening.
Theme
Use the theme button in the bottom bar to switch between three modes: System (follows your OS preference automatically), Light, and Dark. Your choice is saved in the browser and persists across sessions.
Permissions
When you open the app for the first time, Google will ask you to grant access. The app requests the following permissions:
-
Google Drive (specific files only) —
drive.filescope. This gives the app access exclusively to the file (or files) you chose to open. It cannot read, list, or access any other file in your Drive. -
Google Drive (menu integration) —
drive.installscope. This allows the app to appear in the "Open with" menu in Google Drive. It does not grant access to any files. -
External requests —
script.external_requestscope. Required for the app to call the Google Drive REST API server-side to fetch file names (metadata) and download file content. All requests stay within Google's infrastructure.
You can revoke these permissions at any time from myaccount.google.com/permissions.
Known limitations
Multiple Google accounts in the same browser
If you are signed into multiple Google accounts in the same browser, the app may fail to open with a "Page not found" or 404 error.
This is a known limitation of Google Apps Script that affects all web apps and add-ons built on the platform. When multiple accounts are active, Google's routing layer rewrites the app URL in a way that Apps Script cannot handle, and the request fails before the app code is even reached.
Workarounds:
- Open the file in an incognito window (or private browsing) where only the desired account is signed in.
- Use a separate Chrome profile for each Google account.
- Sign out of all other accounts and sign in only with the account you want to use.
If this issue affects you, please star the report on Google's Issue Tracker to help raise its priority: Issue #503254573.
Support
For questions or bug reports, open an issue on the GitHub issue tracker. If you prefer not to use GitHub, the Support page lists other ways to reach the developer and what to include in your message.