Chapter 57
The Format menu
The Format menu applies styles to the selection, or to the line the caret is on, through the active syntax profile. If the profile has no way to write a style, the item is greyed out along with its shortcut, so a command never inserts syntax the profile will not read back. Every item is off in Preview.
Inline styles#
| Item | Shortcut | What it does |
|---|---|---|
| Strong | ⌘B | Bold. |
| Emphasis | ⌘I | Italic. |
| Strikethrough | ⌃⇧ `` | Struck-through text. |
| Code | ` ⌃ `` | Inline code. | |
| Highlight | none | Marked text. Needs Library ▸ CommonMark Options ▸ Highlight to be on. |
| Subscript, Superscript | none | Text below or above the line. Each needs its CommonMark option on. |
| Inline Math | ⌃M | An inline equation. Needs the Inline math option on. |
| Hyperlink | ⌘K | Makes the selection a link, or inserts one. |
| Clear Format | ⌘\ | Removes the formatting from the selection. |
Paragraph#
The Paragraph submenu changes what a whole line or block is.
| Item | Shortcut |
|---|---|
| Paragraph (plain text) | ⌘0 |
| Heading 1 to Heading 6 | ⌘1 to ⌘6 |
| Increase Heading Level | ⌘= |
| Decrease Heading Level | ⌘- |
| Unordered List | ⌥⌘U |
| Ordered List | ⌥⌘O |
| Task List | ⌥⌘X |
| Toggle Task Status | none |
| Indent | ⌘] |
| Outdent | ⌘[ |
| Blockquote | ⌥⌘Q |
| Code Fences | ⌥⌘C |
| Table ▸ Insert Table… | ⌥⌘T |
| Table ▸ Add Row Above, Add Row Below, Delete Row | none |
| Table ▸ Add Column Before, Add Column After, Delete Column | none |
| Insert Image… | ⇧⌘I |
| Alert ▸ Note Block, Tip Block, Important Block, Warning Block, Caution Block | none |
| Horizontal Line | ⌥⌘- |
| Link Reference | ⌥⌘K |
| Footnote | ⌥⌘R |
| Table of Contents | none |
| YAML Front Matter | none |
The table items work on the table the caret is in.
The shortcuts for Strong, Emphasis, Code, Inline Math, Strikethrough, Hyperlink and Clear Format can be changed in Settings ▸ Keyboard. The Paragraph shortcuts are fixed.