Markdown cheat sheet

Syntax reference for the Markdown language.

Last updated December 9, 2024

Use this cheat sheet for syntax reference in the Markdown language. You can use Markdown in the Markdown block.

Note

Markdown language is an advanced modification that falls out of the scope of Squarespace support. We only recommend Markdown if you're comfortable using it.

Phrase emphasis

*italic* and **bold**

italic and bold

Inline (titles are optional):

Some [linked text](http://squarespace.com/ "Title").

Some linked text.

Reference-style labels (titles are optional):

An [example][id].

Then, anywhere else in the same block, define the link: 

[id]: http://squarespace.com/ "Title"

An example.

Tip

You can use whatever you want to in place of "id". Just ensure that they match.

Superscript and subscript

Superscript

E=MC<sup>2</sup>

E=MC2

Subscript

Plants need CO<sub>2</sub>

Plants need CO2

Images

Inline (titles are optional): 

![alt text](/path/img.jpg "Title")
Screen_Shot_2019-01-15_at_1.28.57_PM.png

Reference-style

![alt text][id]

[id]: /url/to/img.jpg "Title"
Screen_Shot_2019-01-15_at_1.28.57_PM.png

Headings

# Heading 1  

## Heading 2

Heading 1

Heading 2

Lists

Ordered, without paragraphs: 

1. A list item
2. Another list item
  1. A list item
  2. Another list item

Unordered, with paragraphs: 

* A list item.   
With multiple paragraphs.
* Another list item.
  • A list item.
    With multiple paragraphs.
  • Another list item.

Nested: 

* Abacus
*absolute
* Bananas
1. bitter
2. bupkis
3. burper
* Cunning
  • Abacus
    • absolute
  • Bananas
    1. bitter
    2. bupkis
    3. burper
  • Cunning

Blockquotes

> Email-style angle brackets are used for blockquotes.
>> You can also nest them.
>>
> * You can quote a list.
> * Etc.

> To break the nested blockquote, add a space between lines.

Add another line to resume regular paragraph text.

Tip

Email-style angle brackets are used for blockquotes.

You can also nest them.

  • You can quote a list.
  • Etc.

To break the nested blockquote, add a space between lines.

Add another line to resume regular paragraph text.

Note

This site uses custom styling for blockquotes. The code provided here won't create the same boxes you see in our help guides.

Code spans

`<code>` spans are delimited by backticks.
You can include literal backticks like `` `this` ``.

<code> spans are delimited by backticks. You can include literal backticks like `this`.

Preformatted code blocks

Indent every line of a code block by at least 4 spaces. Use a colon at the end of the preceding paragraph.

This is a normal paragraph:

This is a preformatted code block.

Preceded by a space, the colon disappears :

This is a preformatted code block.

This is a normal paragraph:

This is a preformatted code block.

Preceded by a space, the colon disappears

This is a preformatted code block.

Horizontal rules

Three or more dashes or asterisks: 

    ---

***

- - - -



Manual line breaks

End a line with two or more spaces: 

Roses are red,  
Violets are blue.

Roses are red,
Violets are blue.

Text colors and fonts

In his beard lived three <span style="color:red">cardinals</span>.

In his beard lived three cardinals .

I am in <span style="font-family:Papyrus; font-size:4em;">LOVE!</span>

I am in LOVE!

Footer Image
  • Get help from our community

  • Get help from our community on advanced customizations.

  • Hire a Squarespace Expert

  • Stand out online with the help of an experienced designer or developer.