MarkQ User Guide#

MarkQ is a Markdown editor, live previewer, and responsive HTML workbench for the Mac, Windows and Linux. Edit on the left, see the result on the right, and everything works offline with nothing to install.

Getting started#

Open something. Use File → Open File… (Cmd+O), drag a Markdown file onto the window, or double-click a .md file in Finder. File → Open Folder… (Cmd+Opt+O) opens a whole folder in the sidebar. File → Open Recent brings back files you used lately.

Take the tour. Help → Open Sample Document opens a document that demonstrates every feature MarkQ renders. Edit it freely; opening it again shows it as you left it, and Help → Reset Sample Document puts the original back. When an update brings a new sample, a copy you never edited is brought up to date by itself; one you edited is left alone, and MarkQ tells you once that a newer sample is available.

Try it free. MarkQ includes a 14-day trial with every feature unlocked. You don't need an email address or a credit card. See License and privacy.

Read it online. This guide is also at markq.app/guide, which is handy if MarkQ is not installed, or to send someone a link to one section. Help → MarkQ User Guide (Online) opens it in your browser.


The workspace#

MarkQ has two sides:

Resize and hide. Drag the divider between them to change the split. Click the < button on the divider (or press Cmd+\) to hide the Design Editor and read in the preview alone. Click Show Design Editor to bring it back.

Tabs. Each document opens in its own tab.

Window position. MarkQ reopens where you left it: same size, same monitor, and maximized or full screen if it was. If that monitor isn't connected, the window opens centered on your main screen at the same size. Extra windows open slightly down and to the right of the one in front.

Coming back after a restart. If you quit MarkQ with several windows open, all of them come back the next time you start it, each with its own tabs and in the size and place it had. The window you were using last is the one in front. A window you closed yourself while others stayed open is not brought back. Tabs with unsaved changes are still asked about when you quit, so nothing is thrown away without a question. On Linux the windows come back but, as above, the desktop decides where they open.

Windows. Drag a tab out of the tab bar, or choose File → Move Tab to New Window, to pop it out into its own window. Use Window → Merge All Windows (Cmd+Shift+M) to bring the windows back together as tabs.

Outline. Press Cmd+Shift+O or click Outline to open a table of contents for the current document. Click a heading to jump to it. MarkQ remembers whether the outline was open or closed and brings it back the same way the next time you start it (and in a new window).

Saving. Cmd+S saves, Cmd+Shift+S saves under a new name, and File → Save All (Cmd+Option+S) saves every tab with unsaved changes (untitled tabs are left, since each needs a name). MarkQ also saves automatically after a short delay (1.5 seconds by default; see Preferences).

If a file changes on disk. If another app edits a file you have open and you have no unsaved changes, MarkQ reloads it and keeps your scroll position. If you do have unsaved changes, MarkQ asks whether to Keep My Changes or Load From Disk, so it never overwrites your work silently.


Right-click menu#

Right-click in the editor, the preview or a text box for the standard Mac text menu, which looks like the one in your other apps and follows light and dark mode:

Tabs and files in the sidebar have their own right-click menus, described under Working with folders.

Writing Markdown#

The formatting toolbar#

The formatting bar under the tab bar, across the editor and the preview, inserts Markdown for you. From the left: a Style menu (Normal, Heading 1–6, Quote; it shows the style of the line the cursor is on), then Bold, Italic, Strikethrough, Inline code, then Block quote, Bulleted, Numbered and Task list and Sort, then Code block, Table, Link, Image, Horizontal Rule, Callout (a list of Note, Tip, Important, Warning and Caution), Diagram (Mermaid) and Math Block, Clear Formatting, and Check. The Code block button opens a list of languages (Plain text, Apache config, AWK, Bash / Shell, Batch, Bicep, C, C#, C++, Clojure, CMake, COBOL, CSS, CSV, Dart, Diff, Docker, Elixir, Erlang, F#, Go, Gradle, GraphQL, Groovy, Haskell, HCL, HTML, HTTP, INI, Java, JavaScript, jq, JSON, JSX, Julia, Kotlin, LaTeX, Less, Lisp, Lua, Makefile, Markdown, Mermaid (diagram), Nginx, Nim, Nix, Objective-C, OCaml, Perl, PHP, PowerShell, Protocol Buffers, Python, R, Regex, Ruby, Rust, Sass, Scala, SCSS, Shell session, Solidity, SPARQL, SQL, Swift, systemd, TOML, TSX, TypeScript, Vim, XQuery, YAML, Zig): choosing one wraps the selected lines in a block of that language, or inserts an empty block with the cursor inside. With the cursor already inside a code block, the list shows a check mark on its language and choosing another changes just the language. A button looks pressed when the cursor is already in that style (the cursor in a bold word presses B). Select text first to style it, or just put the cursor in a word or on a line. The bar works on text selected in the preview as well as in the editor: the one button that cannot apply to preview text (Table) is dimmed while preview text is selected. These last five buttons always put their block into the editor, at the cursor: a Callout, Diagram or Math Block wraps the editor text you have selected, and Image opens a file picker and copies the pictures you choose into an assets folder beside the document (the document must be saved first). The same items are in the Command Palette under Insert. With the editor hidden and nothing selected in the preview, the bar is dimmed. On a narrow window the last buttons move into a » menu. The Aa button at the right of the tab bar hides or shows the bar (it remembers), and so does "Show or Hide Formatting Bar" in the Command Palette.

Styling selected text#

Select text and press a shortcut, use the toolbar, right-click and choose Format, or search the Command Palette (Cmd+K) for "Format". Every style switches: apply it to text that already has it and it comes off again.

Style Shortcut
Bold, Italic Cmd+B, Cmd+I
Strikethrough Shift+Cmd+X
Inline code Cmd+E
Link Shift+Cmd+K (select a web address and it becomes the link's address)
Heading 1 to 6 Option+Cmd+1 to Option+Cmd+6
Block quote, Bulleted, Numbered and Task list Format menu or Command Palette
Clear Formatting Option+Cmd+0
Sort Ascending / Descending Sort button on the bar, Format menu or Command Palette

Lists and tables as you type#

Check and the Problems panel#

The Check button (a check mark, at the right end of the formatting bar) opens the Problems panel along the bottom of the window, above the status bar. It also opens from "Check Document" in the Command Palette, or by clicking Check at the left of the status bar. The status bar item shows the result, "✓ No problems" or "⚠ 6 problems", and keeps showing it after you close the panel, until you change the text or switch to another tab. A click on that item opens the panel, and another click closes it, as the Check button does. A click on Check in a document with nothing to report does not open the panel: the item shows "✓ No problems" and lights up green for a moment. The panel stays open until you close it (the × at its right, or the Check button again), so you can fix a line, click the next one and keep typing with the list in view. Drag its top edge to change its height (it never gets shorter than a few lines), and double-click the edge to put it back to the usual height. MarkQ remembers whether it was open and how tall.

Each line shows where the problem is, what kind it is, and what is wrong. Click a line to select the text in the editor. The list is made again half a second after you stop typing, when you bring the window back, and when you switch tabs; a document that is slow to check is checked less often. With the panel closed nothing is checked, so it never slows a long document.

Code is never checked, so a link shown inside backticks or a code block is left alone. Web links are not checked (that needs the network). A document that has never been saved cannot be checked for files, pictures and embeds, and the list says so. Only the spacing problems have a Fix; the others need you to decide what was meant.

Check Documents When Opened (Preferences, General; also in the Command Palette) checks each document the first time you see it: when you open it from the File menu, a click on its name in the sidebar, a double-click in Finder, or when MarkQ starts with it already open from last time. Clicking back to a tab you have already seen does not check it again. The status bar shows the result, and the Problems panel comes up by itself when there is something in it. A panel that came up by itself goes away again when you move to a document with nothing in it, unless you have used it (clicked in it) or opened it yourself with the Check button, in which case it stays until you close it. It is off by default.

Find and replace#

Cmd+F searches the pane you last clicked. In the editor it opens find and replace. Cmd+Shift+F always searches the preview, highlighting every match and the current one in orange (press Enter and Shift+Enter to step through them).

Both find boxes have three switches: Aa (match case), ab (whole word) and .* (regular expression), also Opt+Cmd+C, Opt+Cmd+W and Opt+Cmd+R while the cursor is in a find box. They are remembered, and shared by both finds. With regular expression on, an invalid pattern shows "Invalid pattern", and in Replace the text $1, $2 and $& stand for the parts that matched. With it off, Replace puts in exactly what you typed.

What MarkQ renders#

Feature How to write it
Headings # Heading 1 through ###### Heading 6
Emphasis **bold**, *italic*, ~~strikethrough~~, `inline code`
Lists - item, 1. item, and indented sub-items
Task lists - [ ] to do and - [x] done. Click a checkbox in the preview and the source updates.
Blockquotes > quoted text
Callouts A quote that starts with [!NOTE], [!TIP], [!IMPORTANT], [!WARNING], or [!CAUTION], with the text on the next line. Each type has its own color and icon.
Tables Pipe tables with an alignment row, such as |:--|:-:|--:|. A header can also set a column's width, see Table column widths.
Code blocks Fenced with three backticks and a language. About 70 languages are highlighted (the full list is under the Code block button on the formatting bar; short names such as hs, tex, objc and xqy work too).
Math $E = mc^2$ inline, $$ … $$ as a block. Prices like $5 and $10 are left alone.
Diagrams A fenced block marked mermaid (flowcharts, sequence diagrams, and more)
Footnotes text[^1] with [^1]: the footnote text anywhere in the document
Front matter A YAML or TOML block at the top shows as a collapsed metadata table
Keyboard keys <kbd>Cmd</kbd> + <kbd>S</kbd>
Images ![alt text](path/or/url)
Wikilinks [[Guide]], see Wikilinks

Code blocks. Every code block has a copy button and its own zoom (+, -, and a click-to-reset percentage) so you can enlarge one block without changing the rest of the page. The zoom of each block is kept when you print or export to PDF or Word.

HTML blocks. A fenced block marked html gets a Code / Preview switch. Preview runs the HTML live, with Desktop, Tablet, and Mobile width buttons for checking responsive layouts. Any css code blocks in the document are applied to it automatically. Use the pop-out button to open it in its own window.

Table column widths#

A table normally gives each column the space its text needs, so a short column such as # can end up wide and a column of long text narrow. To set a column's width yourself, end its header text with a percentage in braces:

| # {5%} | Item {22%} | Why | Suggested action |
| :----- | :--------- | :-- | :--------------- |
| 1      | Fix it     | ... | ...              |

Here # gets 5% of the table's width, Item gets 22%, and the two columns without a number share the rest. The marker is not shown in the header. Some details:

To see it working, choose Help → Open Sample Document and scroll to Tables: the same table is shown twice, once without markers and once with them.

Text encodings#

MarkQ opens UTF-8, UTF-16 and older 8-bit files (Latin-1, Windows-1252) and saves them in the same encoding they came in, so accented letters are not changed. The status bar shows the encoding. If you type a character the file's encoding cannot hold, such as a check mark in a Windows-1252 file, MarkQ asks whether to save the file as UTF-8 instead.


Working with folders#

Open a folder with Cmd+Opt+O and its Markdown files appear in the sidebar. Toggle the sidebar with Cmd+Shift+B.

Unsaved files. A file with unsaved edits in MarkQ has an orange name and an M at the right edge. A folder that contains such a file has an orange name and an orange dot, even when the folder is closed. Saving, or closing the tab, clears them. This works in any folder.


Images#

Standard Markdown works anywhere: ![description](images/photo.png). Relative paths are resolved from the folder of the file you are editing.

Size an image. Add a width in pixels after a | in the description: ![App screenshot|300](assets/screenshot.png) shows the image 300 pixels wide, and the height follows. Without a number, the image appears at its natural size (never wider than the preview).

You don't have to type it. Hover over an image in the preview and a small bar appears with −, the current width, and +. Each click makes the image about 15% smaller or larger and rewrites the number in your Markdown. Click the width to go back to the natural size. Cmd+Z undoes a change. Inside a table, MarkQ writes the separator as \| so the table doesn't break.

The width is saved in your file, so it carries into printing, the HTML export, and the Word export (where it's capped at the page width). It applies to images written in Markdown, not to raw <img> tags.

Paste or drop. Copy an image or take a screenshot to the clipboard, then press Cmd+V in the editor. Or drag image files onto the editor. MarkQ saves them in an assets folder next to your document and inserts the link for you.


Link to another Markdown file by name with double brackets, the way Obsidian and similar tools do.

Write You get
[[Guide]] A link to Guide.md
[[Guide|shown text]] The same link, showing your own text
[[Guide#Heading]] A link that opens the file and jumps to that heading
[[#Heading]] A link to a heading in this document
[[folder/Guide]] A link that picks the file by folder when two share a name

Autocomplete. Type [[ in the editor and a list of your Markdown files appears next to the cursor. With nothing typed yet, the files are listed A to Z by name, and the list scrolls (up to 50 files). Keep typing to narrow it down. Use the up and down arrow keys to choose, then press Enter or Tab to finish the link (MarkQ adds the closing ]] for you and leaves the cursor in front of it), or press Esc to close the list. To carry on into a heading, just type #; to move on, press → or End. Each entry shows the file's folder, and the link that MarkQ inserts includes that folder path, such as [[Projects/Plan]] (a file at the top level of the opened folder is just [[Name]]). That makes it clear which file you mean, even when two files share a name. If you later move the file, MarkQ offers to update links like this in your other files.

Linking to a heading. After the file name, type # and the list changes to the headings in that file, with their level (H1, H2…) on the right. Keep typing to narrow it down, then press Enter or Tab to finish, for example [[Guide#Setup]] (this time the cursor goes after the closing ]]). Type [[# to list the headings in the document you are editing. A heading that contains [, ], | or # isn't listed, because those can't be written inside [[ ]].

How MarkQ finds the file. It searches the folder you have open in the sidebar (or the document's own folder if none is open), ignoring upper and lower case and the .md extension. If two files share a name, the one in the same folder as the current document wins, then the one with the shortest path.

Missing files. A link whose file doesn't exist is dimmed with a dashed underline. Click it and MarkQ asks whether to create the file. Choose Create and the new file (with the title as its first heading) is made next to your document, or under the folder you opened for a link like [[folder/Guide]], and opens in a tab. Characters that can't be used in a file name, such as : and ?, become -. The document must be saved first, so MarkQ knows where the file goes.

Wikilinks inside code spans and code blocks are left as plain text.

Hold Cmd and click a link to jump to its other end. The same gesture works in both panes:

Right-click. The same two jumps are in the right-click menu: on a link in the editor, Go to Link Target; on a link in the preview, Show Link in Editor and Open Link.

When a folder is open and the document is saved, the bottom of the sidebar shows two tabs:

Both tabs count wikilinks ([[Guide]]) and ordinary links to Markdown files ([guide](guide.md)). Links inside code are ignored. The number next to each tab is how many documents it lists.

Click a row to open that document. Click a dimmed "not found" row in Links Out and MarkQ scrolls to that link in the document you're editing and flashes it, so you can fix or create it. From Links In, MarkQ also scrolls to the first link that points back at the document you came from, flashes it, and puts the editor's cursor on that link. Links Out follows your typing; Links In is read from the folder when you switch documents, when files in the folder change, and when you return to the window. Drag the line above the tabs to change the height of the list, and use the arrow at its left to collapse it. The panel looks at the folder you opened, as wikilinks do.


Embedding other files#

Put the text of another Markdown file in a document by writing its name on a line of its own. Three spellings work, so documents written for other tools open as they were:

Write You get
![[Chapter 2]] The whole file Chapter 2.md, in Obsidian style (the file is found by name in the open folder, or by a path relative to this file)
![[Chapter 2#Installation]] Just that section, also in Obsidian style: from the heading to the next heading of the same or a higher level
{{#include chapters/two.md}} The same, in mdBook style
{{chapters/two.md}} The same, in MultiMarkdown style (the name must end in .md or .markdown, so text like {{ title }} stays as it is)

The preview#


Your own document style#

The preview and the Quick Look preview in Finder share one stylesheet. You can change it with a file of your own, without touching the app:

  1. Open Preferences → Preview → Document Style → Edit Style File…. MarkQ creates ~/Library/Application Support/MarkQ/preview.css (with notes at the top) and shows it in Finder. Open it in any text editor.
  2. Write ordinary CSS for the document. h1 { color: #c2185b; } styles the top-level headings of your documents and nothing else in MarkQ. Save the file and the preview updates by itself. Exported HTML files and Quick Look previews use it too.
  3. Use Default Style (same place) puts the standard look back; Edit Style File… brings your file back.

Colours are variables, set outside any rule: --md-text, --md-heading, --md-muted, --md-border, --md-link, --md-accent (check boxes), --md-code-bg, --md-code-border, --md-code-text, --md-inline-code, --md-box-bg (front matter), --md-token-keyword, --md-token-string, --md-token-function, --md-token-comment, and the code font --md-font-mono. For the dark appearance use @media (prefers-color-scheme: dark) { --md-link: #6ea8fe; }. These names will keep working in later versions.

What is not allowed: loading anything from the internet (@import, url(http…); a url(data:…) picture is fine) and a file with unbalanced { } (the whole file is ignored and MarkQ says so). The size of the text follows the preview zoom, so use em for sizes.

Exporting#

Open the Export menu in the preview header, or use File → Export.

Print#

Cmd+P (or File → Print…) opens the macOS print dialog for the document, with paper size, page range and copies, and PDF → Save as PDF at the bottom left.

Print → Save as PDF and Export as PDF are different files. They look the same, but the Print version can be many times larger (for example 8.5 MB against 320 KB for the same ten pages). Export as PDF is written by MarkQ and stores only the characters each font actually uses. Save as PDF in the print dialog is written by macOS, which stores whole fonts inside the file. MarkQ cannot change how macOS writes it. The text in the macOS version can also be harder to search and copy. To make a PDF you will keep or send, use Export as PDF (Cmd+Shift+E), and use Print for a printer. On some versions of macOS the file name field of Save as PDF does not take typed keys (pasting with Cmd+V works); Export as PDF lets you choose the name, or you can rename the file in Finder afterwards.

PDF#

Cmd+Shift+E exports the preview as a PDF, laid out for printing.

Print and PDF always use white paper and the light colours, including Mermaid diagrams, whatever theme you are using on screen. They use the preview's zoom, and each code block's own zoom, so the paper looks the way the preview does (zoom out first for a smaller page count). Every page has a page number at the bottom (for example "3 / 18").

A diagram that is taller than a page cannot be squeezed onto one, and the printer cannot split a drawing, so it starts at the top of a page and runs on over the next ones, cut at the page edge. If that is not what you want, make the diagram wider than it is tall (flowchart LR instead of TD, or direction LR in a state diagram) or split it into two diagrams.

Standalone HTML#

Cmd+Shift+H saves a single .html file with its styles embedded. Wikilinks become plain text, since they point at local files. It uses the light colours (diagrams included) unless Preferences → General → Standalone HTML Export is set to Match Preview Theme. The text is a centred column about 960 pixels wide; a table can be wider than the text on a wide window (up to 1400 pixels, centred on the column), and is the column's width when you print the page.

Word document#

File → Export as Word Document… (or Export → Export as Word Document) creates an editable .docx that opens in Word, Pages, and other word processors.

What comes through as real Word content

What becomes a picture. Mermaid diagrams and math are inserted as images, always in the light look (dark text and lines on white, the same colours as a diagram in the Light theme), whatever theme you use in MarkQ, as with PDF and standalone HTML. They can't be edited in Word.

Links. Web links stay clickable. Links that point to a heading in the same document ([text](#heading), [[#Heading]], or [[This Document#Heading]]) become real Word links that jump to that heading. Links to other files can't work inside a standalone document, so they appear as plain text.

What isn't included. Images that live on the web (http links) are replaced with a placeholder, and front matter is left out. A code block with an unknown language, or none, is shown in plain monospace.

Table of contents. If your document has three or more headings, the export adds a real Word table of contents on its own first page. Turn this off in Preferences → General → Word Export: Table of Contents.

When you open a file with a table of contents, Word shows two prompts:

  1. "This document contains fields that may refer to other files. Do you want to update the fields?" Click Yes. (The highlighted button is No, so don't just press Return.)
  2. "Update Table of Contents." Leave Update page numbers only selected and click OK. (Update entire table works too.)

The table then shows every heading, from level 1 to level 6, with its page number. If you click No on the first prompt, the headings are still listed, just without page numbers until you update the table. This is how Word always builds a table of contents; MarkQ can't tell Word the page numbers in advance. To refresh it later after editing, right-click the table in Word and choose Update Field.


Preferences#

Open MarkQ → Preferences… (Cmd+,).

Editor

Setting What it does
Theme Light, dark, or follow the system for the Design Editor
Font and size Monospace font and size (11 to 24 px)
Soft word wrap Wraps long lines instead of scrolling sideways (Option+Z)
Line numbers Shows line numbers beside the editor (Cmd+Opt+L)
Tab indentation 2 or 4 spaces inserted when you press Tab (in a table, Tab moves to the next cell instead)

Preview

Setting What it does
Preview theme System, light, or dark
Default device viewport Desktop, iPad (768 px), or iPhone (375 px): the width a Live View starts at
Reading width Full, Wide (1100 px), Comfortable (860 px), or Narrow (680 px)
Line spacing Compact, Normal, or Relaxed
Mermaid diagrams Turns diagram rendering on or off
Show each line break as a line break Off (the default): a single Enter joins lines into one paragraph, as in standard Markdown, and only a blank line starts a new paragraph. On: every Enter starts a new line in the preview, in exports and in Word. The file itself is not changed

General

Setting What it does
Auto-save delay Fast (0.5 s), Standard (1.5 s), Slow (3 s), or Manual only
Check documents when opened Checks each document as it opens and shows the Problems panel if there is anything in it (off by default)
Word export: table of contents Adds a table of contents to Word exports of longer documents
Check for updates when MarkQ starts Off by default. When on, MarkQ asks github.com once a day whether a newer version exists, and offers each new version once
Check for updates Check Now… looks for a newer version right away
License and registration Shows your license status and lets you manage it
Reset defaults Restores every setting above to its default

Keyboard shortcuts#

Files and tabs

Shortcut Action
Cmd+T New tab
Cmd+N New window
Cmd+O Open file
Cmd+Opt+O Open folder
Cmd+S / Cmd+Shift+S Save / Save as
Cmd+Option+S Save all
Cmd+W Close tab
Cmd+Shift+W Close window
Ctrl+Tab / Ctrl+Shift+Tab Next / previous tab
Cmd+1 to Cmd+8, Cmd+9 Go to a tab by position, or the last tab
Ctrl+Shift+Left / Right Move tab left / right
Cmd+Shift+M Merge all windows

View

Shortcut Action
Cmd+\ Hide or show the Design Editor
Cmd+Shift+B Hide or show the sidebar
Cmd+Shift+O Document outline
Cmd+= / Cmd+- / Cmd+0 Zoom the preview in / out / reset
Option+Z Toggle soft word wrap
Cmd+Opt+L Toggle line numbers
Cmd+R Reload the current tab

Editing and finding

Shortcut Action
Cmd+B / Cmd+I / Cmd+E Bold / italic / inline code
Shift+Cmd+K / Shift+Cmd+X Link / strikethrough
Option+Cmd+1 to 6 Heading 1 to 6
Option+Cmd+0 Clear formatting
Option+Up / Option+Down Move the line, or the selected lines, up / down
Cmd+F Find (in the pane you last clicked)
Cmd+Shift+F Find in the preview

Export

Shortcut Action
Cmd+P Print
Cmd+Shift+E Export as PDF
Cmd+Shift+H Export as standalone HTML

Quick Look in Finder#

This is a Mac feature. The Windows and Linux versions do not have it. On Windows, Microsoft's free PowerToys has a similar preview called Peek (Ctrl+Space on a file in File Explorer), which shows a Markdown file formatted, though not in MarkQ's style.

Select a Markdown file in Finder and press the spacebar: Quick Look shows it formatted instead of as plain text. This works for .md, .markdown, .mdown and .mkd files, and it needs no setup after MarkQ is in your Applications folder (the first time, macOS may take a moment to notice it).

The preview shows headings, text styles, lists, task lists, tables, code with colours, math, footnotes, callouts, front matter and wikilinks (as plain text), in light or dark to match your Mac. A few things differ from MarkQ's own preview:

If the spacebar still shows plain text, open System Settings → General → Login Items & Extensions, scroll to the Extensions section, click the (i) button next to MarkQ, and make sure Quick Look is switched on. Restarting the Mac also makes macOS pick it up.


Command line tool#

This section is for the Mac. The Linux package and the Windows installer already put markq on your path.

Install it once from MarkQ → Install Command Line Tool…. macOS asks for an administrator password because the tool is placed in /usr/local/bin.

Then, in Terminal:

markq README.md       # open a file
markq ~/projects/docs # open a folder in the sidebar

If MarkQ is already running, the file or folder opens in the existing window.

If Terminal says command not found: markq, your Mac does not look in /usr/local/bin yet (newer versions of macOS leave it out). Add this line to the file ~/.zshrc, then open a new Terminal window:

export PATH="/usr/local/bin:$PATH"

License and privacy#


Uninstalling MarkQ#

  1. Quit MarkQ (Cmd+Q). If any tab has unsaved changes, MarkQ asks first.

  2. Open Applications in Finder and drag MarkQ to the Trash, then empty the Trash. That removes the app, including the Quick Look preview it provides. For a while macOS can keep using MarkQ's preview for Markdown files in Finder (press Space on a .md file). To make it forget the preview right away, restart your Mac, or paste this into Terminal:

    qlmanage -r
    

    This tells macOS to reload its list of Quick Look previews, so it notices that MarkQ's is gone. It changes nothing else, deletes nothing, and is safe to run (it needs no password).

Your own documents, and the assets folders next to them, are never touched. MarkQ does not run anything in the background and adds nothing to your Login Items, so there is nothing else to switch off.

Removing MarkQ's own files (optional). Dragging the app to the Trash leaves MarkQ's settings on your Mac. They are small and harmless, and a later reinstall picks them up again. To remove them too:

  1. In Finder choose Go → Go to Folder… (Shift+Cmd+G) and enter ~/Library/Application Support/MarkQ.
  2. Check the Recovered folder first. It holds text MarkQ saved for you after a crash that you may not have opened yet.
  3. Drag the MarkQ folder to the Trash.

That folder holds your preferences, the list of recent files, window positions, the sample document, and your license. If you delete it, MarkQ no longer knows it is licensed, so keep your license key (the one you received with your purchase) and enter it again under MarkQ → License & Registration… if you reinstall.

The command line tool. If you chose MarkQ → Install Command Line Tool…, a link called markq stays in /usr/local/bin. Remove it by pasting this into Terminal (it asks for your Mac password):

sudo rm /usr/local/bin/markq

It is harmless if you leave it: it just stops working once the app is gone.


MarkQ on Windows#

MarkQ also comes as an installer for Windows 10 and 11, for 64-bit Intel / AMD computers and for ARM64 computers. This guide is written for the Mac, so this section lists what differs.

Install. Download the installer for your computer from markq.app (the 64-bit Intel / AMD one is what most PCs need; Settings → System → About shows "System type" if you are not sure), then open it. It installs for your own account, so it does not need administrator rights, and it lets you choose the folder. MarkQ then appears in the Start menu, and .md files list it under Open with. To open Markdown files in MarkQ by default, choose Open with → Choose another app → MarkQ → Always.

If Windows shows a blue box saying "Windows protected your PC", click Run anyway (on some versions the button appears after you click More info). The box lists the publisher, Darrel Cox: MarkQ's installer is signed. Windows shows the box for any program it has not seen many times yet, and MarkQ is new, so it goes away as more people install it.

The installer asks who to install for. Only for me is the usual choice and needs no administrator rights; Anyone who uses this computer asks for them.

Updates. Help → Check for Updates… tells you when a newer version exists. Download fetches the installer for your computer; open it and it replaces the old version, keeping your files and settings.

Keys. Wherever this guide says Cmd, use Ctrl. Option is Alt. For example Ctrl+O opens a file, Ctrl+Shift+E exports a PDF, and Alt+Ctrl+O opens a folder. Ctrl+Q or Alt+F4 exits MarkQ.

Menus. There is no separate MarkQ menu. Exit (Ctrl+Q) is at the bottom of File, Preferences… (Ctrl+,) is at the end of Edit, and About, Check for Updates… and License & Registration… are in Help.

Command line. The installer puts markq on your path, so in Command Prompt or PowerShell (open a new window after installing) markq notes.md, markq . (the current folder) and markq docs\ guide.md work as they do on the Mac. Uninstalling MarkQ takes it off the path again.

What is not there. Quick Look in Finder is a Mac feature, and Install Command Line Tool… is not needed. Reveal in Finder is Show in File Explorer.

Folders. Some old shortcuts that Windows keeps in your user folder, such as "My Documents", cannot be opened by any program, so MarkQ leaves them out of the sidebar. Your real Documents folder is there as usual.

Uninstall. Quit MarkQ, then open Settings → Apps → Installed apps, find MarkQ and choose Uninstall. Your documents are never touched. MarkQ's settings stay, so a later reinstall picks them up. To remove them as well, check the Recovered folder in %APPDATA%\MarkQ first (it holds text saved after a crash that you may not have opened yet), then delete the %APPDATA%\MarkQ folder. Keep your license key, which you will need if you install MarkQ again.


MarkQ on Linux#

MarkQ also comes as a .deb package for Ubuntu and other Debian-based systems, for x86_64 and for ARM64 computers. It was tested on Ubuntu 26.04. This guide is written for the Mac, so this section lists what differs.

Install. Download the package for your computer from markq.app (x86_64 is what most computers have), then in a terminal, from the folder it is in:

sudo apt install ./MarkQ-linux-x64.deb

(MarkQ-linux-arm64.deb for an ARM64 computer. Run uname -m if you are not sure: x86_64 or aarch64.) MarkQ then appears in your applications menu, .md files list it under Open With, and the command markq README.md opens a file or folder. At the end apt may print a line starting "Notice: Download is performed unsandboxed as root" and ending in "Permission denied". It comes from Ubuntu, not from MarkQ, and appears whenever a package is installed from a folder in your home directory. It is harmless: the install has worked. Updates: Help → Check for Updates… tells you when a newer version exists. Download fetches the package for your computer (MarkQ-linux-x64.deb or MarkQ-linux-arm64.deb), and the message shows the command to install it: sudo apt install ./MarkQ-linux-x64.deb, run in the folder it was saved to.

Keys. Wherever this guide says Cmd, use Ctrl. Option is Alt. For example Ctrl+O opens a file, Ctrl+Shift+E exports a PDF, and Alt+Ctrl+O opens a folder.

Menus. There is no separate MarkQ menu. Quit (Ctrl+Q) is at the bottom of File, Preferences… (Ctrl+,) is at the end of Edit, and About, Check for Updates… and License & Registration… are in Help.

What is not there. Quick Look in Finder and Install Command Line Tool… are Mac features. The package already puts the markq command on your path. Reveal in Finder is Show in Files.

Windows. Ubuntu's desktop decides where a window opens, so MarkQ cannot put it back where you left it, although it remembers the size. Ubuntu also opens a window that is bigger than about three quarters of the screen maximized; gsettings set org.gnome.mutter auto-maximize false turns that off.

Folders. On Linux the sidebar watches the folder you opened and the folders you have expanded, so a change inside a folder you have not opened yet shows when you expand it or click Refresh. This keeps a folder full of repositories opening at once. On the Mac every folder below is watched.

Uninstall. Quit MarkQ, then run sudo apt remove markq. Your documents are never touched. To remove MarkQ's settings as well, check the Recovered folder in ~/.config/MarkQ first (it holds text saved after a crash that you may not have opened yet), then delete the ~/.config/MarkQ folder. Keep your license key, which you will need if you install MarkQ again.


Troubleshooting#

A tab shows old text and a yellow strip above the status bar says a drive is not answering. The file is on an external disk or a network drive that did not answer when MarkQ started (or stopped answering while the file was open). MarkQ does not wait for it: a tab restored from your last session shows its text from then, the window keeps working, and the strip stays up while that tab is in front and goes away by itself when the drive is back. While it is up, saving that file is refused with a message and your changes stay in the window. When the drive is back, MarkQ says so and loads the file as it is now. If you changed the tab in the meantime, MarkQ asks before replacing your changes, as it does for any file that changed outside. A drive that never comes back is a problem with the drive: try unplugging it and plugging it in again, or check it in Disk Utility.

A tab's name is struck through in red. The file was deleted or moved while the tab was open, or before you started MarkQ. Point at the tab to read the message. The text is still there: Save (Cmd+S) writes the file again in the same place, or use Save As to put it somewhere else. If you moved the file on purpose, open it from its new place and close this tab.

A tab's name has a grey dashed underline. The drive the file is on is not available: an external disk that was unplugged, or a network drive that is asleep or disconnected. Plug it back in or reconnect it, and the mark goes away. While it is out, saving that file is refused and your changes stay in the window.

The Word table of contents has no page numbers. The file already lists every heading, but only Word can work out page numbers. When you open the file, click Yes on the first prompt, then choose Update page numbers only (or Update entire table) on the second. Pages, Quick Look, and other viewers that can't update the table show the headings without page numbers.

A wikilink is dimmed. MarkQ couldn't find a file with that name in the open folder. Check the spelling, make sure the file is inside the folder you opened, or click the link to create it.

An image doesn't show. Relative paths are resolved from the folder of the saved document. An unsaved document has no folder, so save it first. Images on the web need an internet connection.

Pasting an image says to save the document first. Save the document with Cmd+S, then paste again.

Files in the sidebar look out of date. Click the refresh button in the sidebar header. If that fixes it often, tell us which kind of folder it is (network drive, cloud-synced folder), because those can miss change notifications.

MarkQ closed unexpectedly and started empty. If MarkQ crashes several times in a row while opening your last tabs, it starts empty on purpose, and any unsaved text from those tabs is saved as files. Help → Show Recovered Files opens the folder that holds them (while there are some, the Help menu shows a ● after its name, the item shows a count, and MarkQ's Dock icon shows the same count; the folder is ~/Library/Application Support/MarkQ/Recovered). Open a file from there to get your text back. Help → Clear Recovered Files… moves them to the Trash when you no longer need them.

A diagram shows an error. Mermaid reports a syntax error in place of the diagram. Check the text of the diagram block against the Mermaid documentation.

Something else. Email support@markq.app. Describe what you did, what you expected, and what happened.