Part of Markdown Suite for Google Workspace™

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:

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:

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:

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.