Contents

Typing Markdown

Olive turns Markdown into formatting while you type. Inline patterns convert the moment you finish them, and block patterns convert at the start of a line when you type the space that follows them. The markers themselves — **, #, $ — never come back, not even on the line you are editing.

Bold, inline code and LaTeX math forming the moment each Markdown pattern is completed, then a selected word turned into inline math from the selection toolbar

Inline formatting

Type

Result

**bold** or __bold__

bold

*italic* or _italic_

italic

~~strikethrough~~

strikethrough

==highlight==

highlight

`code`

inline code

$x$

inline math

$$

an empty inline formula, ready to edit

[^label] followed by the next character

footnote reference

*, ~~, == and ` convert anywhere in a line, including directly after a Japanese character or any other letter. _ and __ follow CommonMark and convert only at the start of a line or after a space, so snake_case_name is left alone.

Blocks at the start of a line

Type

Result

# to ######

Heading 1–6

- , * , +

Bulleted list

1.

Numbered list

[ ] , [] or [x] at the start of a paragraph or list item

Task list item

>

Quote

> [!note] , > [!warning] , … at the start of a quote

Callout

```lang or ~~~lang

Code block

---, *** , ___

Divider

[^label]:

Footnote definition

--- converts on its own; *** and ___ need the trailing space. Callouts are described in Tables, callouts, toggles and diagrams, and footnotes in Links and footnotes.

Keeping what you typed

To keep the characters instead of the formatting, press Undo (⌘Z, or Ctrl+Z on Windows and Linux) or Backspace immediately after a conversion. The literal characters come back. Undo again to remove what you typed, or Redo to convert it again.

Formatting a selection

Select text to bring up a toolbar with bold, italic, strikethrough, inline code, link and inline math. The usual shortcuts work as well — ⌘B, ⌘I, ⌘E for code, ⌘K for a link and ⇧⌘E for inline math; the full list is in Keyboard shortcuts.

Japanese, Chinese and Korean text

Patterns such as **bold** and $math$ convert right after a Japanese, Chinese or Korean character with no space in between, and nothing converts while your input method is still composing.

Line breaks

Enter starts a new paragraph or list item. Shift+Enter inserts a line break inside the same paragraph.

In the file, a line break is written as a backslash at the end of the line (\) in the middle of a paragraph, and as <br> at the end of a paragraph, in a heading and in a table cell, where Markdown has no other way to write one. Both are standard Markdown line breaks and look the same in Olive. A line break you did not type keeps the spelling it already had. See Markdown compatibility.


Back to the contents.