Markdown

Markdown Header (#)

Type: Action
Keyboard Shortcut: ⌃⌘H
Icon: hashtag
Colour: none
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: 5C8ADAD0-B444–4871-A584–835AEB308625
Description:
Increase Markdown header level of current line by adding a “#” at the beginning. If the line is currently at the maximum 6 levels of heading, remove the leading header characters.

Markdown Bold (**)

Type: Action
Keyboard Shortcut: ⌘B
Icon: format-bold
Colour: none
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: 34BFE77C-4290–4949-A761-A32951304B7F
Description:
Apply Markdown bold (**) around selection, or insert ** if no selection.

Markdown Emphasis (_)

Type: Action
Keyboard Shortcut:
Icon: format-italic
Colour: none
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: AA3D7BF9–6EB3–4194-B04D-BAF4D52648C7
Description:
Apply Markdown emphasis (_) to selection or insert _ if no selection.

Markdown List

Type: Action
Keyboard Shortcut:
Icon: list
Colour: none
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: CD247F5D-2026–4187-B02B-8A05A1BF01F3
Description:
Toggle Markdown list for selected lines, maintaining indentation.

Markdown Link (Rosemary Orchard)

Type: Action
Keyboard Shortcut:
Icon: link
Colour: none
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: 9E64F0E5-AE91–4B37–8357–989A35693EDD
Description:
Insert Markdown link “”. If there is a text selection, use it as the link text, if a URL is in the clipboard, place it as the link.

Markdown Quotation (>)

Type: Action
Keyboard Shortcut: ⌃Q
Icon: caret-right
Colour: none
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: 69593512–80FD-4BA4-ACAC-70A52CE24504
Description:
Apply Markdown Quote (“> “) at beginning of selected lines.

Inline Code (`)

Type: Action
Keyboard Shortcut:
Icon: command
Colour: none
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: F3A5720C-CED5–47C4–8A20–635DCAA0A826
Description:
Apply Markdown inline code (`) around selection, or insert ` if no selection.

Code Block (```)

Type: Action
Keyboard Shortcut: ⌃⌘C
Icon: command
Colour: none
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: 3FF86D6C-6EDB-4CE3–8FD8-BF59CCDE2E09
Description:
Apply Markdown fenced code block (```) around selection, or insert empty block if no selection.

Markdown Table

Type: Action
Keyboard Shortcut:
Icon: border-all
Colour: none
Confirm to Run: false
Notifications: Errors
Log Level: None
Number of Steps: 1
Unique ID: 09C6D7F6–3143–47BD-B652–677B7799C876
Description:
Insert empty MultiMarkdown table markup. The action will prompt for the number of rows and columns, and create and insert MultiMarkdown table syntax for the table with header of the requested size, like:

|  |  |  |
|:--|:--|:--|
|  |  |  |
|  |  |  |

Preview

Type: Action
Keyboard Shortcut:
Icon:
Colour: none
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 0
Unique ID: AAA90F33-B1DF-4B59–86D7-B8F291075A64
Description:

Preview

Type: Action
Keyboard Shortcut: ⌥⌘P
Icon: eye
Colour: gray
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: EF72A48A-326E-4939–8E08-A7A91B46F856
Description:
Markdown preview which builds some css styles based on current dark or light mode.

Preview with Line Highlight

Type: Action
Keyboard Shortcut:
Icon: eye
Colour: gray
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 2
Unique ID: 1EB0A7B8–7574–4CEA-9338–5A5ADB9C357C
Description:
Markdown preview which builds some css styles based on current dark or light mode.

This example adds <mark> tag surrounding the text of the selected line.

Preview (with MathJax)

Type: Action
Keyboard Shortcut:
Icon: eye
Colour: gray
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: 3DD4FA90–8965–43F5-B828–28ED4DEC07BC
Description:
Markdown preview which builds some css styles based on current dark or light mode. The template of this included MathJax to render equations. MathJax support can be added to any HTML Preview by including the below script tags in the of the HTML document generated by the HTML Preview.

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> 
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>

Swiss Preview

Type: Action
Keyboard Shortcut:
Icon: eye
Colour: gray
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: 79D00139-B9A5–4025-B00F-3CBE8DBE2E4F
Description:
Markdown preview using Swiss style.

Foghorn Preview

Type: Action
Keyboard Shortcut:
Icon: eye
Colour: gray
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: B473B3FF-151D-46BC-B94D-75BE35774C45
Description:
Markdown preview using the Foghorn style.

Utility

Type: Action
Keyboard Shortcut:
Icon:
Colour: none
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 0
Unique ID: D4F69548–3025–4672–8D8A-78BA619ECDA7
Description:

Copy as HTML

Type: Action
Keyboard Shortcut:
Icon: action_clipboard_filled
Colour: gray
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 1
Unique ID: C6469F41–23CD-400F-A9D8–19BC1945BE04
Description:
Run draft through Markdown conversation and copy HTML to clipboard.

Copy as Rich Text

Type: Action
Keyboard Shortcut:
Icon: action_markdown
Colour: gray
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 1
Unique ID: 71DFFCB3-FA2A-4C16-BD45-EF9DA90F1BF9
Description:
Convert Markdown draft to rich text and place in clipboard.k

Markdown Mail

Type: Action
Keyboard Shortcut:
Icon: action_email_filled
Colour: gray
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 1
Unique ID: 900AAA94-E93A-4EE9-ADF2-C9B803D874A3
Description:
Open mail message with the first line of the draft as the subject and remaining content as the body converted to HTML via Markdown. Can be duplicated and modified to create pre-addressed messages, or use templates.

URL to Markdown Link

Type: Action
Keyboard Shortcut:
Icon: btn-linkmode
Colour: none
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 1
Unique ID: 140BF33D-DF73–4529–90F6–78D95C3BE623
Description:
This action makes a link in Markdown from a selected URL.

The link’s text is the Title of the page fetched from the URL.

For example:

http://dobyfriday.com

Becomes:

[Do By Friday](http://dobyfriday.com)

Markdown Header (#)

Type: Action
Keyboard Shortcut:
Icon: hashtag
Colour: none
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: 7402453B-206F-46BD-94C1–326EBEE88F38
Description:
Add “#” at beginning of line to create Markdown header. Use more than once to add heading levels.

Markdown Bold (**)

Type: Action
Keyboard Shortcut:
Icon: format-bold
Colour: none
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: 51F96D16-A242–46AF-AD51–9F491A82A755
Description:
Apply Markdown bold (**) around selection, or insert ** if no selection.

Markdown Emphasis (*)

Type: Action
Keyboard Shortcut: ⌘I
Icon: format-italic
Colour: none
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: B0C14E99-E0FC-4945–9D4F-D129079CD749
Description:
Apply Markdown emphasis (_) to selection or insert _ if no selection.

Markdown List

Type: Action
Keyboard Shortcut: ⌃L
Icon: list
Colour: none
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: 87767E40–575C-4BA4-AE03-F82EF6204963
Description:
Toggle Markdown list for selected lines, maintaining indentation.

Markdown Link

Type: Action
Keyboard Shortcut: ⌘K
Icon: link
Colour: none
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: 377E55A7-F174–4928-AE16–448927010E34
Description:
Insert Markdown link “”. If there is a text selection, use it as the link text, if a URL is in the clipboard, place it as the link.

Preview

Type: Action
Keyboard Shortcut:
Icon:
Colour: none
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 0
Unique ID: 6F36B042-E6BF-4B9C-81C9–540946ADDD47
Description:

Swiss Preview

Type: Action
Keyboard Shortcut:
Icon: eye
Colour: gray
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: 344A5706-B408–449B-ACC3–803F32974A23
Description:
Markdown preview using Swiss style.

Foghorn Preview

Type: Action
Keyboard Shortcut:
Icon: eye
Colour: indigo
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: 581C19FF-1CF4–497C-9AB7-D667F5FE9D92
Description:
Markdown preview using the Foghorn style.

Replace URLs by MD links

Type: Action
Keyboard Shortcut: ⇧⌘U
Icon: action_url
Colour: red
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 3
Unique ID: DF34C253-D375–4BA4–986C-992AEDEA76EB
Description:
Detects all URLs in a draft and replaces them with a title markdown link if the title exists. (Pages like google.com don’t seem to have a title) Uses a regex pattern already used by @complexpoint in a similar fashion. Uses @sylummer ‘s very wide ranging TADPole library

Markdown Footnote (Variation)

Type: Action
Keyboard Shortcut: ⌃F
Icon: ellipsis
Colour: yellow
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: 14F1A79A-095C-484F-95BB-3F0AAA8775D6
Description:
A slight variation of @pdavisonreiber‘s Markdown Footnote Action which uses reference links formatted without ^ or : at the bottom of the document. ([1] instead of [^1]:)

The original action’s description, modified accordingly:

Insert Markdown footnote [^1] in the text and add [1] at the end of the document. If there is text selected, move it to the footnote at the end of the document. Numbers used for references automatically increment each time.

Markdown Footnote

Type: Action
Keyboard Shortcut:
Icon: ellipsis
Colour: none
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: AA6C5FCE-9216–44E9-B2C8–944EB77F3850
Description:
Insert Markdown footnote [^1] in the text and add [^1]: at the end of the document. If there is text selected, move it to the footnote at the end of the document. Numbers used for references automatically increment each time.

Table of Contents

Type: Action
Keyboard Shortcut:
Icon: list
Colour: none
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 1
Unique ID: DA0A13CD-195A-4533-BEB0–12B70AAAFB43
Description:
Insert a table of contents based on Markdown headers.

Put the placeholder where you want the table of contents to appear.

You can run it multiple times and it will update the table of contents.

If you don’t use a placeholder, the table of contents will be inserted before the first non-title header.

This is similar to the {{TOC}} feature if you are using the MultiMarkdown renderer (the default), except it will put your table of contents in the Draft, not just previews.

Make Markdown Link

Type: Action
Keyboard Shortcut:
Icon: action_url
Colour: blue
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: B77173D3–18AA-469F-B188–1EE99638E6CE
Description:
Scan the current line for a URL. If one is found, make an HTTP request to retrieve the web page, scan it for the <title> tag, and create Markdown link for the URL with the page title as the link text.

Example

Running on the line:

https://getdrafts.com/

Would transform it to:

[Drafts | Where Text Starts](https://getdrafts.com)