Your resource for web content, online publishing
and the distribution of digital products.
S M T W T F S
 
 
 
 
 
1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29
 
30
 

The Dead Simple Markdown Guide to Code

DATE POSTED:August 20, 2024
Code

To denote a word or phrase as code, enclose it in backticks (`).

\

| Markdown | HTML | Rendered Output | |----|----|----| | At the command prompt, type `nano`. | At the command prompt, type nano. | At the command prompt, type nano. |

Escaping Backticks

If the word or phrase you want to denote as code includes one or more backticks, you can escape it by enclosing the word or phrase in double backticks (``).

\

| Markdown | HTML | Rendered Output | |----|----|----| | ``Use `code` in your Markdown file.`` | Use `code` in your Markdown file. | Use `code` in your Markdown file. |

Code Blocks

To create code blocks, indent every line of the block by at least four spaces or one tab.

\

\ The rendered output looks like this:

\

\

:::info Note: To create code blocks without indenting lines, use fenced code blocks.

:::

\

:::info This guide is a Matt Cone project available on Markdown Guide under the CC BY-SA 4.0 license.

:::

\