Quick Links
Markdown is a powerful alternative toHTMLfor crafting written content that can be easily shared online, kept in a notes app, or exported to other formats. Here’s a cheat sheet to get you up to speed.
Basic Markdown Syntax
There are various implementations ofMarkdown, some of which expand upon the basic syntax with support for more features (like mathematical formats). Regardless of which you’re using, the most basic syntax remains the same.
The following is a list of simple, common Markdown commands. This basic syntax is commonly referred to asCommonMark.
Alternative syntax
Unordered list
Ordered list
Code block
blockquote
Line break (horizontal rule)
or
Advanced Markdown Syntax
On top of the basic syntax listed above, your Markdown editor may also support some more advanced functions, such as:
Task list (checkbox)
LaTeX equations
Definitions
Create Links in Markdown
Links are created in markdown by placing the placeholder text in square brackets, followed immediately by the link you want to share in standard brackets immediately after it. Make sure there isn’t a gap between them when you create your link, like so:
Inserting Images with Markdown
Images can be inserted using Markdown with square and standard brackets. The descriptive alt text you use should go in the square brackets, with a link to the image following it in standard brackets, like so:
If you’re having trouble getting this to work, make sure that the image is in the location that you specify. If you’re dragging images into a Markdown editor, the link will point to the location of the image on your local drive rather than its location on a web server.
How to Create a Table in Markdown
Tables are one of the more confusing Markdown elements to master, but they work just fine as long as you make sure the lines and spaces are all in the right place. You can differentiate the header row of a table using dashes, of which you only need three.
You can beautify your table in code view if you want (and add more spaces and dashes to improve its readability), but if all you care about is the end result then the example above works just fine.
Keep in mind that many Markdown editors will have their own tools for creating tables, quickly expanding the number of rows and columns, and automatic formatting for copying and pasting items in or out of the column. This can be easier to implement if your app of choice supports it.
How to Use Code Blocks in Markdown
To create a code block in Markdown you have two options. you may either encase the text in a grave accent `, colloquially known as a backward apostrophe or the key that appears beneath “Esc” on most keyboards.
For a block of code, use three grave accents ``` at the start of the block, then three more at the end of the block. This allows you to quote multiple lines of code.
Create Line Breaks (Horizontal Rules) in Markdown
Line breaks are useful for signifying the end of one section and the start of another. CommonMark supports line breaks through the use of three dashes:
Some editors (like Ulysses) require four dashes to trigger a line break.
How to Strikethrough Text with Markdown
Strikethrough isn’t commonly supported in Markdown, and so its implementation can vary between editors. One common way of using strikethrough is to use two tilde symbols, like so:
Using Subscript and Superscript in Markdown
Some editors allow you to use subscript using tilde symbols on either side of the input you want to format, like so:
Others use chevrons to elevate text, like so:
If your editor doesn’t do this and you’re happy to use HTML, both theandHTML tags can be used for subscript and superscript, respectively.
Highlight Text in Markdown
Another non-standard function but one that some editors support, you may be able to highlight works using two equals symbols on either side of a word, like so:
Some editors use their own method of highlighting. Ulysses can use the “Mark” syntax:
Create Task Lists in Markdown (with Checkboxes)
Task lists are useful for keeping track of reminders, and they work a lot like unordered lists do except with one additional step. In addition to the dash you need to use to define a list at the beginning of a line, you also need to add the checkbox in its checked or unchecked state, like so:
Your Choice of Editor Matters
Markdown is versatile and powerful, but the experience can be even better with the right kind of editor. Apps like Ulysses and iA Writer put a price on the Markdown experience, but they’re arguably worth it if you spend a lot of time writing for the web.
For note-taking, apps likeBearandObsidianhave excellent free plans with affordable upgrade paths if you need more. Of course, there are plenty of free editors likeMacDownandMarkTextor the web-basedEditor.md.
You can evenuse Markdown in Google Docs by tweaking a single setting.