Markdown Viewer & Editor Pro – Help
Markdown Viewer & Editor Pro is a Google Workspace add-on that lets you view and edit Markdown (.md) files directly from Google Drive and Gmail.
Contents
- Overview
- Getting started
- Opening files
- The Viewer
- The Editor (Pro)
- Callouts
- Footnotes
- Plans and billing
- Your data and privacy
- Troubleshooting
- Support
1. Overview
The add-on has two parts:
- Viewer – shows a Markdown file as a formatted page: headings, tables, task lists, callouts, footnotes and syntax-highlighted code.
- Editor (Pro) – a visual (WYSIWYG) editor. You edit the formatted text, and the file is saved back to Drive as Markdown.
Both open in a new browser tab. Your files stay in your own Google Drive.
Free and Pro
| Free | Pro | |
|---|---|---|
| View Markdown files from Drive and Gmail | ✓ | ✓ |
| Edit Markdown files | – | ✓ |
| Save to Drive (including Gmail attachments as new Drive files) | – | ✓ |
| Open documents at the same time | up to 25 | up to 50 |
Pro is available as a monthly or a yearly subscription. See Plans and billing.
2. Getting started
Install and allow permissions
- Install the add-on from the Google Workspace Marketplace.
- Open it from the right-hand side panel in Gmail or Google Drive.
- Google asks you to allow the permissions the add-on needs. Allow all requested permissions; the add-on cannot work with only some of them.
The add-on reads only the Drive files you open with it and the Gmail message you have open.
The first time you open the add-on, the Before you start card asks you to accept the Terms of Service: choose Accept and continue. Until then no file opens. When the Terms are updated, the card asks again.
The add-on card
When you open the add-on without selecting a file, you see the home card:
- Your plan – "FREE – Viewer" with an Upgrade button, or "PRO – Editor" with the date your plan is valid until.
- A short hint: Open a Markdown (.md) file from a Gmail message or select one in Drive.
- Help & legal – Help (this page), Terms, Privacy and Support.
- Your data – the Delete my add-on data button (see Delete my add-on data).
3. Opening files
From Google Drive
- In Google Drive, select one
.mdfile. - Open the add-on in the side panel.
- Click a button:
- Pro: Open in Editor or Open in Viewer;
- Free: Open in Viewer.
The first time you open a file, Google asks for permission to read that file. Click Grant access and open. This is needed once per file. If Google has lost the permission (for example after a long time), the card shows Grant access again.
Messages you may see:
- Please select a Markdown (.md) file to view or edit. – no file is selected.
- Please select only one Markdown file at a time. – more than one file is selected.
- Only Markdown (.md) files are supported. – the selected file is not a Markdown file.
From Gmail
- Open an e-mail that has a
.mdattachment. - Open the add-on in the side panel. It lists the Markdown attachments of the message.
- Click Open in Editor or Open in Viewer below the attachment's name.
Note
Clicking the attachment itself in the e-mail opens Google's own file preview, not the add-on. Use the side panel.
An attachment is opened as a temporary copy for 6 hours. With Pro you can save it: the first Save to Drive creates a new file with the attachment's name in the root of your My Drive; later saves update that file.
How many documents can be open
Each Viewer or Editor tab counts as one open document: up to 25 with Free and up to 50 with Pro. Closing a tab frees its place. A place that was not freed (for example, the browser crashed) is released automatically after 6 hours.
4. The Viewer
The Viewer shows the file read-only. The header shows the product name, the file name and the theme button. With Free it also shows: To use the Editor, upgrade to Pro from the add-on card in Gmail or Drive.
Supported Markdown
The Viewer follows GitHub-flavoured Markdown (GFM):
- headings, paragraphs, bold, italic,
strikethrough, links and images; - bulleted, numbered and task lists (
- [ ],- [x]); - tables with column alignment;
- quotes and horizontal rules;
- callouts (
> [!NOTE]…), see Callouts; - footnotes (
[^1]), see Footnotes; - math formulas (
$…$,$$…$$, ````math```), see Math formulas; - code blocks with syntax highlighting. JavaScript, TypeScript, Python, SQL, Java, C#, C++, PHP, Go, Rust, HTML, CSS, Bash and PowerShell each get their own accent colour; other languages use the basic highlighting.
For your safety, scripts, forms and inline styles inside a Markdown file are never run or shown; the Viewer removes them.
Light and dark theme
Use the ☾ Dark mode / ☀ Light mode button in the header (in the Editor: the ☾ toolbar button). Until you choose, the add-on follows your system setting. Your choice is saved to your Google account, so it applies to both the Viewer and the Editor, on every computer and browser where you use the add-on.
Colors for headings and lists
Click 🎨 Colors in the Viewer's header (in the Editor: the 🎨 toolbar button) and pick a color scheme:
| Scheme | What it colors |
|---|---|
| Default | The original look: orange headings, list markers in the text color. |
| Orange, Blue, Green, Yellow, Purple, Brown, Gray | Headings 1–4, the bullets and numbers of lists (top level and nested levels in two shades), task-list checkboxes and math formulas. |
- The new colors apply at once, in both the Viewer and the Editor.
- Every scheme has a light and a dark variant; the one that matches your theme is used automatically.
- Your choice is saved to your Google account, like the theme.
- Colors are a display setting only: nothing is written into your Markdown file, so the file stays clean for any other tool.
Math formulas
The Viewer shows LaTeX math the same way GitHub does (Free and Pro):
| You write | You get |
|---|---|
$E = mc^2$ | a formula inside the line |
$$\frac{a}{b}$$ on its own line, or across several lines between $$ and $$ | a centered formula on its own line |
a code block whose language is math (``` `math ```) | a centered formula on its own line |
- Formulas work in paragraphs, lists, tables, quotes and callouts, in both the light and the dark theme.
- With the Default color scheme formulas use the text color; with any other scheme they take the scheme's color (see Colors for headings and lists). A color written in the formula itself, such as
\color{red}{x}, is kept. - Prices stay text: a
$followed by a space, or a closing$followed by a digit, is not a formula, so "It costs $5 and $10" shows as written. Write\$for a literal dollar sign. - Inside code (`
$x$` or a code block) nothing is converted. - A formula with a mistake is shown as its source text in red with a dashed frame; point at it to see the error.
- The formula is drawn by your browser, so its look can differ slightly between browsers.
- In the Editor (Pro) formulas are shown the same way. Click a formula to edit it in the formula window: change the LaTeX source (you can also paste it with its
$or$$signs; they set Inline or Display), choose Inline ($…$) or Display ($$…$$), watch the live preview, then Apply (or Ctrl+Enter). Remove deletes the formula, Cancel (or Esc) keeps it. - To add a formula, click √x in the toolbar, or simply type it, for example
$E = mc^2$: it turns into a formula when you move the cursor away. - A
`mathblock stays a code block in the Editor, so you edit its source directly. - Formulas are saved exactly as written, also when you edit the text around them. A formula you copy is pasted as its source (
$…$). - A dollar sign written as
\$stays exactly like that in the Editor and in the file.
5. The Editor (Pro)
Editing
The Editor shows the formatted document, and you edit it directly. The toolbar stays at the top while you scroll. It has the usual formatting tools (headings, bold, italic, lists, links, tables, code blocks and more), plus:
- Callout – a menu that turns the selected paragraphs into a Note, Tip, Important, Warning or Caution callout, changes the type of an existing callout, or removes it (No callout).
- Slash commands – type
/and choose, for example, Callout: NOTE to insert a new callout. - √x – inserts a math formula at the cursor (see Math formulas).
- 🎨 – colors for headings and lists (see Colors for headings and lists).
- ☾ – switches between light and dark theme.
- Save to Drive – saves the file (see Saving to Drive).
Code blocks are highlighted in the Editor too, and the colours update while you type.
Text copied from a code editor such as VS Code is pasted as plain text (without its colours and background). To paste anything else as plain text, use Ctrl+Shift+V.
Saving to Drive
Click Save to Drive or press Ctrl+S (⌘+S on a Mac). The status next to the file name shows the result:
- Saving to Drive…
- ✓ Saved to Drive (with the time; disappears after a few seconds)
- ✓ Saved to Drive as a new file – the first save of a Gmail attachment.
If you can only view the file in Drive, the Editor shows ⚠ Read-only file: saving is disabled.
Local drafts
While you type, the Editor keeps a local draft in your browser every few seconds (Draft saved locally … — not yet saved to Drive). A draft is not a save to Drive.
If you reopen a file that has an unsaved draft, the Editor asks Draft found. Restore? Choose OK to continue from the draft, or Cancel to start from the file in Drive. After a successful save to Drive, the draft is removed.
When the file changed in Drive
If the file was changed in Drive after you opened it (by you in another tab, or by someone you share it with), the save stops with ⚠ Not saved: the file changed in Drive. and asks what to do:
- OK – overwrite the file with your version;
- Cancel – keep editing. Reload the page to get the newer version; your draft stays saved locally.
Renaming or re-sharing a file in Drive can also trigger this question even if the content did not change.
What is kept when you save
- Only what you edit changes. Every part of the file you did not touch is saved back exactly as it was written: the same characters, spacing and Markdown style. A small edit gives a small change in the file, which matters when your Markdown is also kept in Git.
- Tables you edit keep their cell formatting (code, bold, italic, links) and column alignment.
- Link and footnote definitions are never lost.
- Callouts are always saved in the standard GitHub form (
> [!NOTE]). A callout you did not edit keeps its text exactly. - Math formulas (
$…$,$$…$$) are saved exactly as written.
Good to know:
- Formatting that plain Markdown cannot store – font, font size, text or highlight colour, text alignment, underline and inserted icons – may be lost when you save. Use headings, bold, italic, lists and callouts instead.
- Raw HTML in a file (for example
<details>or<kbd>) is shown as text in the Editor. The Viewer shows it formatted.
6. Callouts
Callouts are highlighted boxes for notes and warnings, written in the GitHub style:
> [!NOTE]
> Useful information.There are five types: [!NOTE], [!TIP], [!IMPORTANT], [!WARNING] and [!CAUTION]. The type is not case-sensitive. The [!TYPE] line must stand alone, and the body lines start with >.
Callouts written in Google Drive's own Markdown editor are saved by Google in an escaped form (for example \> \[\!NOTE\]). The add-on recognises this form too, shows it as a callout, and the Editor saves it in the standard form above.
Callout syntax inside a code block is left as code.
7. Footnotes
This sentence has a footnote.[^1]
[^1]: The footnote text.- Viewer: the reference becomes a small clickable number. The footnotes are listed under Footnotes at the end of the page, each with a ↩ link back to the text.
- Editor: footnotes are shown and edited as Markdown text (
[^1]and[^1]: …), so you can change them directly. They are saved as written.
8. Plans and billing
Upgrade to Pro
- On the add-on card, click Upgrade.
- Choose Pro – yearly or Pro – monthly and click Continue to checkout.
- Complete the payment on the secure checkout page. The final price for your country is shown there.
- Close the checkout page. The card shows Activating your plan… for a few moments; press Refresh until it shows PRO – Editor.
The subscription renews automatically every month or year until you cancel. You can cancel anytime.
Manage your subscription
With Pro, the card shows:
- Manage subscription – opens the customer portal: payment method, invoices, cancellation.
- Change plan – switches between monthly and yearly. The change takes effect immediately; press Refresh after a few seconds to see the new plan.
- Withdraw from contract here – the withdrawal link.
When a subscription ends, the add-on returns to Free. Your files in Drive are not affected.
9. Your data and privacy
- Your Markdown files stay in your own Google Drive. The add-on has no server or database of its own for your documents.
- The add-on keeps a small amount of working data in your own Google account: open-document records, temporary copies of Gmail attachments (for 6 hours; larger ones in a Drive folder named MD Viewer Temp), your display settings (theme and color scheme), and a cleanup schedule.
- Your browser keeps the Editor's local drafts and a local copy of your theme choice.
- The Viewer and the Editor load open-source libraries from public content delivery networks (jsDelivr, cdnjs). Your documents are never sent to them.
The full details are on the Privacy page.
Delete my add-on data
On the home card, under Your data, click Delete my add-on data and confirm with Delete permanently. Save your open documents first.
This deletes the add-on's data stored in your Google account: open-document records, temporary attachment copies and the MD Viewer Temp folder (only if it contains nothing else), your display settings (back to Default colors and your system theme), your acceptance of the Terms of Service (you will be asked again next time), and the cleanup schedule.
Not affected: your saved Markdown files in Drive, your subscription and your billing data. This does not cancel your subscription – to cancel, use Manage subscription.
To finish, uninstall the add-on (Gmail or Drive → Add-ons → Manage add-ons) and, for unsaved drafts, clear this site's data in your browser settings.
10. Troubleshooting
| Message | What to do |
|---|---|
| Please accept the Terms of Service first (in the Viewer or Editor tab) | Open the add-on in Gmail or Drive and choose Accept and continue on the Before you start card, then open the file again. |
| Permission needed (in the Viewer or Editor tab) | Click the authorization link, allow all permissions, close that tab and reload the page. |
| Active document session limit exceeded. Please close some documents. | Close Viewer or Editor tabs you no longer need, then try again. See How many documents can be open. |
| The card asks for Grant access and open / Grant access again | Click it and allow access to the file. Google asks once per file. |
| This message could not be read. Reopen the message and try again. | Close and reopen the e-mail, then open the add-on again. |
| The attachment was not found. Reopen the message and try again. | Reopen the e-mail; the attachment list may be out of date. |
| This attachment is too large to open. | Attachments up to about 3.5 MB can be opened from Gmail. Save the attachment to Drive and try opening it from there. |
| This attachment session expired. | The 6-hour temporary copy has expired. Your draft is kept locally; reopen the attachment from Gmail. |
| Saving requires a Pro plan. | Your plan is Free (for example, the subscription has ended). See Upgrade to Pro. |
| The file is not accessible. It may have been deleted or unshared. | Check in Drive that the file still exists and that you have access. |
| You can only view this file; saving is not allowed. | Ask the file's owner for edit access, or make a copy in Drive. |
| Another save is in progress. Try again in a moment. | Wait a moment and save again. |
| Saving to Drive failed. Your draft is kept locally; try again. | Try again; your work is kept as a local draft. |
| Your display setting could not be saved to your account. It applies on this page only. | The color or theme you chose still applies on this page. Try again later; if it keeps happening, reopen the file. |
| The plan still shows FREE after payment | Press Refresh on the add-on card. Activation can take a few moments. |
| A math formula is shown in red with a dashed frame | The formula has a LaTeX mistake (for example a missing }); point at it to see the error, then fix it in the file. |
Math formulas show as $…$ source text in a grey code style | The formula renderer could not be loaded. Reload the page. |
| A callout from Google Drive's editor shows as plain text in Google's own preview | Expected: Google's preview does not show callouts. Open the file with the add-on. |
11. Support
Still need help? Use the Support link on the add-on's home card or on this website.