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:
- The Design Editor on the left is where you type Markdown.
- The Preview on the right shows the rendered result and updates as you type.
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.
Cmd+Tnew tab (or click the + right after the last tab),Cmd+Wclose tab,Ctrl+Tabnext tab,Ctrl+Shift+Tabprevious tab.Cmd+1toCmd+8jump to a tab by position;Cmd+9jumps to the last tab.- Drag tabs to reorder them, or use
Ctrl+Shift+LeftandCtrl+Shift+Right. - Point at a tab for a moment and a small card appears under it with the file's name and folder, and a line about anything that needs your attention (unsaved changes, a preview tab, or one of the two marks below).
- A name struck through in red means the file was deleted or moved by another program while it was open (or before MarkQ started). The text is still in the tab, and a message tells you when it happens. Save puts the file back where it was, and if the file returns by itself the mark goes away.
- A name with a grey dashed underline means the file's drive, an external disk or a network drive, is not available (unplugged or asleep). Your text stays in the tab and the mark goes away when the drive is back. Nothing is lost.
- A tab with unsaved changes shows its name in orange with an M.
- Right-click a tab for Move Tab to New Window, Merge All Windows into Tabs, Move Tab Left or Right, Close Other Tabs, Close Tabs to the Right, Reveal in Finder, and Copy Full Path.
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:
- In the editor: Undo, Redo, Cut, Copy, Paste, Select All, Look Up for the selected text, and Format (see Styling selected text). A misspelled word shows spelling suggestions and Add to Dictionary. On a link, Go to Link Target comes first.
- In the preview: Copy, Look Up and Select All, Format when the selected text can be styled, and on a link Show Link in Editor and Open Link.
- Text boxes (Filter files, Find, Preferences fields): Undo, Redo, Cut, Copy, Paste, Select All.
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 |
- Spaces at the ends of the selection stay outside the markers, so a double-clicked word with its trailing space still becomes
**word**. - With nothing selected, the style goes on the word at the cursor.
- Several selected lines are styled line by line (a list marker stays outside the markers), and the list, quote and heading styles work on every line the selection touches.
- Sort (the A over Z button) sorts what the cursor or selection is in, A to Z or Z to A:
- A table: the body rows sort by the column the cursor is in. The header and the
---row stay. Select some rows to sort only those. - A list: the items sort, each with its nested items. A numbered list is renumbered, task items keep their checked state, and with the cursor in a list the whole list sorts.
- Several selected lines: the lines sort, and blank lines stay where they are.
- Case and Markdown marks are ignored; numbers sort as numbers (2 before 10), percentages and money as numbers, dates as dates; empty items go last. One
Cmd+Zundoes a sort. It also works on selected list items and table rows in the preview.
- A table: the body rows sort by the column the cursor is in. The header and the
- Clear Formatting takes off bold, italic, strikethrough, code and links in the selection (a link keeps its text, a wikilink its alias or name) and the heading, quote or list marker of the lines it touches. A style the selection only touches comes off whole: select part of a bold phrase and the whole phrase becomes plain. A code block loses its fences and keeps the code as plain text; images are left alone.
- In the preview the same shortcuts, the bar and the Format menu work on selected text: MarkQ finds the matching Markdown and changes it there, with
Cmd+Zto undo. Styles on the text itself (bold, italic, strikethrough, code, link, clear) need the selection to line up with the Markdown exactly, and are left alone across paragraphs, list items, table cells, math or diagrams. Headings, quote and the lists work on whole lines, so the selection can cover several paragraphs or list items; tables, code blocks, math and diagrams are refused. The table button is editor-only; the code block button works on selected preview text too (a code block's language can be changed from the preview). After a change the preview redraws and the selection is gone, so select again to toggle it back.
Lists and tables as you type#
- Lists. Press Enter at the end of a bullet, numbered or task item and the next item starts with its marker (the next number, or an empty check box). Text after the cursor moves to the new item, and the numbers of the items below go up by one. Press Enter on an empty item to end the list. Enter does nothing special inside a code block, or with the cursor in front of the marker. A line of the list in a block quote (
> - item) works the same. - Moving around a table. With the cursor in a table, Tab goes to the next cell and selects its text, and Shift+Tab goes back. Tab in the last cell adds a row. The
---row is skipped. Outside a table, Tab indents as before. - Adding rows. Enter in a table adds a row under the current one (an empty last row ends the table instead and leaves a blank line below it, so the text you type next does not become another row). The cursor goes to the first cell of the new row, wherever it was in the row you pressed Enter in. A new row has cells as wide as the row above it, so the pipes line up and a table that is lined up stays lined up.
- The Table button inserts a new table when the cursor is not in one. With the cursor in a table it looks pressed and opens a menu: Add Row Above / Below, Add Column Left / Right (the new column is named "Column 3" and selected, ready to rename), Delete Row, Delete Column, Align Column Left, Center or Right (or remove the alignment), and Tidy Table, which lines up every column and keeps the alignment. The same items are in the Command Palette (type "Table:"). Each is one
Cmd+Z. The header row cannot be deleted, and a table keeps at least one column. - Only the rows an edit touches are rewritten, so a table you have lined up by hand keeps its spacing (until you choose Tidy Table).
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.
- Links: a link to a file that does not exist, a
#headinglink or a[[File#Heading]]link to a heading that is not there, a[[wikilink]]with no file, and a[text][label]link with no[label]:line (the preview shows it as plain text). - Images: a picture whose file is missing.
- Embeds: an
![[file]],{{#include file.md}}or{{file.md}}that cannot be shown (the same reasons the preview gives). - Footnotes: a
[^1]with no text, and footnote text that is never used. - Tables: a row with more or fewer cells than the header (extra cells are not shown).
- Spacing: lines with no blank line between them that are read differently with one: text under a table that becomes a table row, text under a quote or list item that becomes part of it, a numbered list that does not start at 1 right under text (shown as plain text), a picture on its own line beside text, and text above a
---line that becomes a heading instead of a dividing line. Each has a Fix button that adds the blank line. Fix spacing (n) at the top does all of them in one step (oneCmd+Zundoes it). Text above---may be a heading you meant, so Fix spacing leaves it; use its own Fix to make it a dividing line. - Structure: a code block that is never closed, and a heading level that is skipped (H2 followed by H4).
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 |  |
| 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:
- It must be the last thing in the header cell:
Item {22%}. Spaces around the number are fine ({ 22 % }), and a decimal such as{12.5%}works. - Mark as many or as few columns as you like. If the marked columns add up to 100% or more while another column has no marker, the markers are ignored and the table is drawn as usual. If every column is marked, the numbers are treated as shares of the whole table.
- It works in the preview, in Quick Look, and in Word, PDF, and HTML exports.
- Other Markdown programs don't know this marker and will show
{22%}as part of the header text. The table itself still works there.
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.
- Single-click a file to preview it. The tab is shown in italics and is replaced by the next file you click, which keeps your tab bar tidy.
- Double-click a file, or start editing it, to keep it open in its own tab.
- Filter files… narrows the list by name across all subfolders.
- The sidebar header has four buttons, in the same order as VS Code: New File (+), New Folder, Refresh, and Collapse All Folders. New File and New Folder show an inline name field. Folder names can't contain
/, and a name that already exists is refused with a message. - Right-click an item for Open (Keep Tab), New File…, New Folder…, Rename…, Reveal in Finder, Copy Full Path, and Move to Trash. On an empty part of the sidebar, the right-click menu has Open Folder… and Close Folder. You can also open a folder from File → Open Folder… (
Cmd+Opt+O). - Drag and drop to move. Drag a file or a folder onto a folder in the sidebar to move it there. The folder highlights while you hover over it, and a closed folder opens if you hold over it for a moment. Drop onto empty space below the tree to move the item to the top level of the folder you opened. If the file is open in a tab, the tab follows it and keeps any unsaved edits. A move is refused, with a message, if the destination already has an item with that name, and a folder can't be moved into itself. Moving can't be undone with
Cmd+Z; drag the item back, or use Reveal in Finder. Links inside the moved file are updated for you. A relative link or image such asor[guide](../docs/guide.md)is rewritten so it still points at the same file, and the toast tells you how many links changed. This covers links in[text](path)form, reference definitions, and<img src>or<a href>in raw HTML. Web links,#anchors, absolute paths, links shown inside code, and links that were already broken are left alone. When you move a folder, links between the files that move together stay as they are, and only links to things outside it change. If the file is open with unsaved edits, the links are updated in the editor and the tab stays unsaved until you save. Links from other files are updated too, after asking. If other files in the opened folder link to what you moved, MarkQ asks "Update links to … in other files?" and tells you how many links in how many files. Choose Update Links and normal links and images, and path-style wikilinks such as[[folder/Guide]], are rewritten to follow the move. Choose Don't Update and the move still happens, but those links are left as they were. Plain wikilinks like[[Guide]]need no change, because they find files by name, with one exception: if another file in the folder has the same name (say two files calledtest.md), a plain[[test]]could end up meaning the wrong one after a move. In that case MarkQ pins the link to the moved file's path, for example[[assets/test]], and a link that already points at the other file is left alone. Files that are open with unsaved edits are updated in the editor and stay unsaved until you save. MarkQ only looks at files inside the folder you opened. - Several files at once.
Cmd-click files in the sidebar to pick more than one, or click one file andShift-click another to pick the files between them. Drag any picked file onto a folder (or onto empty space below the tree) and all of them move together; the drag shows how many. A file whose name is already used in that folder stays where it is, the others still move, and the message names the files that did not. If other files link to a file you move, MarkQ asks about each one as it does for a single move. With files picked, pressDelete(or right-click one of them and choose Move to Trash) to move them all to the Trash after one question. A plain click on any file, or a drag of an unpicked file, starts over with one. Folders can't be picked this way: move or trash them one at a time. - Refresh re-reads the folder. The sidebar also refreshes by itself when files change, and again when you switch back to MarkQ. Collapse All Folders closes every open folder in the tree at once.
- Hidden folders (names starting with
.) andnode_modulesare skipped.
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: . 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:  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.
- Pasted images are named by date and time, for example
image-20261014-190032.png. Dropped files keep their own names, with spaces replaced by dashes. - A name that is already taken gets
-1,-2, and so on, so nothing is overwritten. - Save a new document first. An unsaved document has no folder yet, so MarkQ asks you to save before it can add images.
Wikilinks#
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.
Jumping between a link and its target#
Hold Cmd and click a link to jump to its other end. The same gesture works in both panes:
- In the editor, Cmd-click a
[[wikilink]]or a[text](file.md#heading)link to go to what it points at: it opens the file and jumps to the heading, the way "go to definition" works in a code editor. A web address opens in your browser, and a#headinglink scrolls this document's preview. - In the preview, Cmd-click a link to go to where it is written. The editor's cursor goes to that link in your text, and the link flashes. If the editor is hidden, it opens first. A plain click on a link in the preview still follows it.
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.
Links In and Links Out#
When a folder is open and the document is saved, the bottom of the sidebar shows two tabs:
- Links In lists the documents in the folder that link to this one.
- Links Out lists the documents this one links to, once each, in the order they first appear. A link to a file that doesn't exist is dimmed and marked "not found", so it doubles as a list of broken links.
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) |
- Picking the file: typing
)
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:
- "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.)
- "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 |
|
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:
- Mermaid diagrams are drawn (light or dark to match your Mac). One that cannot be drawn, for example because of a syntax error, stays as its code with a note.
- Images stored on your Mac (next to the document, or at a path in your home folder) show, up to 5 MB each. Images on the internet, and images that are missing, too large or outside your home folder, show as
[image not shown: name], and a note at the end of the preview says why: Quick Look does not let a preview use the internet. Images embedded in the document itself (data:images) also show. - HTML written in the document is reduced to simple formatting; scripts and style sheets are removed. Inline colours, bold, italic, underline, alignment and sizes (
style="color:#cc0000") are kept, in plain forms only. Text in a very dark or very light colour that would disappear on the page in the Mac's current appearance is shown in the page's normal text colour instead. Anhtmlcode block is shown as code with a static preview under it (headings, lists, tables, text), labelled as a preview: scripts cannot run in Quick Look, so a block that depends on a script may look incomplete. Open the file in MarkQ to see it live. - Very large files are shown up to about 2 MB of text, with a note at the end.
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#
- Trial. 14 days, every feature unlocked, no email and no credit card.
- License. One-time purchase. A license covers up to 3 of your own computers (Mac, Windows or Linux), for personal or commercial work, and includes every future update, major versions too. Manage it from MarkQ → License & Registration….
- Offline and private. MarkQ works fully offline. It has no accounts, no analytics, and no telemetry, and license checks happen on your computer. Your documents never leave it. Two things can use the internet. One is checking for updates, and only when you ask: MarkQ → Check for Updates…, or the startup check in Preferences, which is off by default. A check is a single request to github.com for the number of the latest release. It sends no identifier and nothing about you or your files. The other is an image that a document links to online (a badge in a README, for example): the preview loads it from its server the way a web browser would. Turn that off with Load Online Images in Preferences. See markq.app/privacy.
- Updates. Choose MarkQ → Check for Updates… (also under Help) to see whether a newer version exists. If there is one, MarkQ shows what's new and offers Download, which opens the latest installer in your browser, and Release Notes. Install it over the old app, as you did the first time. With the startup check turned on, MarkQ looks at most once a day and tells you about each new version only once, with a Skip This Version button.
Uninstalling MarkQ#
Quit MarkQ (
Cmd+Q). If any tab has unsaved changes, MarkQ asks first.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
.mdfile). To make it forget the preview right away, restart your Mac, or paste this into Terminal:qlmanage -rThis 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:
- In Finder choose Go → Go to Folder… (
Shift+Cmd+G) and enter~/Library/Application Support/MarkQ. - Check the Recovered folder first. It holds text MarkQ saved for you after a crash that you may not have opened yet.
- 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.