Espresso

Markdown Actions

Espresso's Markdown actions provide shortcuts for inserting common Markdown elements, and are only available when editing Markdown documents (you can enable them for any open text document by choosing View ⟩ Language ⟩ Markdown if you are editing a Markdown document with a non-standard extension).

Formatting actions

The following formatting actions will toggle the formatting for all selections, disable surrounding formatting if the cursor is in a piece of text that is already formatted, or insert the proper formatting around the cursor if there is no selection:

The following formatting actions will wrap the first selection or insert the target element at the cursor if there is no selection, and if the top item on your clipboard appears to be a URL it will be inserted automatically:

Header and horizontal rule actions

The header and horizontal rule actions make it easier to create and modify Markdown headers or horizontal rules.

Actions ⟩ Markdown ⟩ Increase Header Level (command shift H)

When you run this action on a normal line, a single atx-style header marks will be added to the beginning of the line every time you increase the header level. If you are in a line that is already a header, the level of the header will increase (and if you are working with an setext-style header, it will switch to atx if you go from a level 2 to a level 3 header). If you are using header marks at the end of the line as well as the beginning, they will also be updated.

Actions ⟩ Markdown ⟩ Decrease Header Level (option shift command H)

This action is identical to Increase Header Level, except it decreases the level of header.

Setext headers

To automatically insert an setext underline, type out your header text, hit enter to move to the next line, then type = for a level 1 header or - for a level 2 header and hit tab.

Actions ⟩ Markdown ⟩ Update Setext Underline (control option command H)

Run Update Setext Underline when your cursor is inside of an setext header's underline or text to automatically update the number of characters in the underline to match the new length of the text.

Horizontal rules

Type *, -, or _ and hit tab to automatically insert a horizontal rule using the given character.

List and blockquote actions

In addition to the actions outlined below, Espresso will automatically add a new list element when you hit enter while your cursor is inside of a list item. If you are done adding items to your list, hit enter a second time to exit the list. If you are working with an ordered list, Espresso will also automatically update the list ordering numbers if you insert a new element in the middle of the list. If you hit the enter key when your cursor is not at the end of the line, Espresso will instead insert a normal linebreak and indent the text to match the leading indentation of the first line of the list. To create an empty new line inside of a list without adding a new list element, use command enter.

The following actions will prefix all selected lines (except empty lines, in the case of the list actions) in order to transform them into blockquotes or lists, or if there is no selection it will convert the current line to a list or blockquote:

Actions ⟩ Markdown ⟩ Renumber Ordered List (control option command O)

This action will automatically update all numbers for the ordered list under your cursor so that they flow sequentially starting with 1..