Chapter 10
Format text through the active profile
Formatting commands write plain-text marks defined by the active syntax profile. They do not secretly store rich text.
Tutorial: format a short note#
- Type a title and a paragraph in a
.mddocument. - Put the caret in the title and choose a heading level from Format.
- Select a phrase and choose Strong (⌘B) or Emphasis (⌘I).
- Select a technical term and choose inline code.
- Turn two lines into a bulleted or numbered list.
- Switch to Preview to inspect the structure.
If a command is unavailable, the active profile does not declare a way to write that construct or Preview is active. Change profiles only when the document genuinely uses another syntax; otherwise you can reinterpret existing marks unexpectedly.
Paragraph commands include headings, lists, block quotes, code fences, tables, alerts, horizontal lines, links, references, footnotes, a table of contents marker, and YAML front matter when the profile supports them. Inline commands include strong, emphasis, strikeout, code, links, images, highlight, subscript, superscript, and other declared roles.
Use Paragraph to remove a block role, Clear Format to return selected inline content toward ordinary paragraph text, and Increase Heading Level or Decrease Heading Level to move through the profile’s heading hierarchy. Lists support unordered, ordered, and task forms; Toggle Task Status checks or unchecks the current task, while Indent and Outdent change nesting. Default paragraph shortcuts include ⌘0 through ⌘6, ⌥⌘U for unordered list, ⌥⌘O for ordered list, ⌥⌘X for task list, ⌥⌘Q for block quote, and ⌥⌘C for a code fence.