← Back to Mark

Documentation & Syntax Guide

A complete reference of every Markdown feature, custom extension, and keyboard shortcut supported in Mark.

1. Headings (Titles) Ctrl+1 / 2 / 3

Mark supports all 6 heading levels. When text is selected, pressing Ctrl+1, Ctrl+2, or Ctrl+3 instantly wraps the line with the corresponding heading level.

# Heading 1 ## Heading 2 ### Heading 3 #### Heading 4 ##### Heading 5 ###### Heading 6

2. Text Emphasis Ctrl+B • Ctrl+I • Ctrl+U

Format text with bold, italic, bold-italic, and underline tags.

**bold text** *italic text* ***bold and italic*** <u>underlined text</u>

4. Images & PDF Sizing Tags Ctrl+Shift+V (Paste)

Standard images default to 70% width. When exporting to PDF, you can specify exact size scaling tags in the description:

![Standard Image](images/photo.jpg) ![Description[small]](images/photo.jpg) → 25% width ![Description[medium]](images/photo.jpg) → 50% width ![Description[large]](images/photo.jpg) → 75% width ![Description[full]](images/photo.jpg) → 100% width
Clipboard Paste: Press Ctrl+Shift+V to paste an image directly from your clipboard. Mark automatically saves it to the local images/ folder and inserts the Markdown tag. Press Ctrl+Shift+I to insert from a file dialog.

5. Lists & Interactive Task Lists

Create bulleted, numbered, and interactive checkbox task lists. Checkboxes in the live preview are interactive: checking a box in the preview immediately updates your Markdown source.

* Item 1 * Item 2 - Alternative item 1. First step 2. Second step - [x] Completed task - [-] Blocked / Incomplete task - [ ] Task to do > - [x] Quoted task > - [ ] Quoted pending task

6. Blockquotes

Format quotes and nested citations with the > character.

> This is a blockquote. > It can span multiple lines. > Outer quote >> Nested quote inside

7. Code & Syntax Highlighting Ctrl+H

Write inline code or multi-line blocks with language identifiers. Features Highlight.js syntax highlighting and instant click-to-copy in the preview.

Use `inline code` within regular text. ```javascript function greet(name) { console.log("Hello, " + name + "!"); } ```
Supported Languages: javascript, python, c, cpp, java, typescript, rust, go, ruby, php, csharp, swift, kotlin, r, bash, powershell, sql, html, css, json, yaml, markdown, latex, and more.

8. Tables

Standard GitHub Flavored Markdown tables with column alignments.

| Header 1 | Header 2 | Header 3 | | :--- | :---: | ---: | | Left | Center | Right | | Cell A | Cell B | Cell C |

9. Horizontal Rule

Create visual divider lines between sections.

--- ***

10. Mathematical Formulas (KaTeX)

Render mathematical notation natively using LaTeX syntax. Inline math uses $...$ and block display equations use $$...$$.

Inline formula: $E = mc^2$ Display equation: $$ \int_{0}^{\infty} e^{-x^2} dx = \frac{\sqrt{\pi}}{2} $$

11. Mermaid Diagrams

Render flowcharts, sequence diagrams, class models, and state diagrams directly inside ```mermaid code blocks.

```mermaid graph TD A[Start] --> B{Decision} B -->|Yes| C[Action 1] B -->|No| D[Action 2] C --> E[End] D --> E ```

12. External Code Include

Embed source code directly from external project files without copying and pasting. Supports whole files or line range slices.

!(Main File)[src/main.c] !(Main Function)[src/main.c#L10-L40] !(Alternative Syntax)[src/main.c:10-40]

13. Table of Contents (for PDF)

Insert <!-- TOC --> as the very first line of your Markdown file. When exporting to PDF (Ctrl+E), Mark generates an automated initial page with a linked table of contents.

<!-- TOC --> # Chapter 1: Introduction ## Background # Chapter 2: Implementation

14. Smart Auto-Closing & Formatting

Mark automatically closes matching bracket and quote pairs:

Auto-closed pairs: ( ) [ ] { } " " ` `

- Tab: Skips over the closing character when the cursor is positioned directly before it.
- Enter: In any list, pressing Enter creates the next list item. Pressing Enter on an empty item exits the list.

15. Document Import Engine Ctrl+I

Mark can parse and convert the following file formats into clean Markdown:

  • PDF (.pdf)
  • Microsoft Word (.docx)
  • Microsoft PowerPoint (.pptx)
  • Microsoft Excel (.xlsx)
  • HTML Documents (.html)

16. Keyboard Shortcuts Reference

All core shortcuts available in Mark for rapid writing:

Shortcut Action
Ctrl + SSave file
Ctrl + NNew file (with unsaved changes prompt)
Ctrl + OOpen single file
Ctrl + Shift + OOpen folder (loads directory tree)
Ctrl + EExport as PDF
Ctrl + IImport document (PDF, Word, Excel, PPTX, HTML)
Ctrl + FFind & search in document
Ctrl + MToggle Dark / Light Mode
Ctrl + RToggle Explorer sidebar
Ctrl + BBold text
Ctrl + IItalic text
Ctrl + UUnderline text
Ctrl + 1 / 2 / 3Heading 1 / 2 / 3
Ctrl + HInsert code / Code block
Ctrl + LInsert link template
Ctrl + KFormat Markdown
Ctrl + ZUndo
Ctrl + Alt + ZUndo history panel
Ctrl + Shift + VPaste image from clipboard (auto-saved)
Ctrl + Shift + IInsert image from file picker
ESCExit Reading Mode / Close search