This is some placeholder text to show examples of Markdown formatting. We have a full article template you can use when writing a DigitalOcean article. Please refer to our style and formatting guidelines for more detailed explanations: https://do.co/style
Before you begin this guide you’ll need the following:
This is italics, this is bold, and this is strikethrough.
This is a quote.
This is a quote inside a quote.
- This is a list in a quote.
- Another item in the quote list.
Here’s how to include an image with alt text and a title:
Use horizontal rules to break up long sections:
Rich transformations are also applied:
Tables | are | also | supported | and | will | overflow | cleanly | if | needed |
---|---|---|---|---|---|---|---|---|---|
col 1 | col 2 | col 3 | col 4 | col 5 | col 6 | col 7 | col 8 | col 9 | col 10 |
col 1 | col 2 | col 3 | col 4 | col 5 | col 6 | col 7 | col 8 | col 9 | col 10 |
col 1 | col 2 | col 3 | col 4 | col 5 | col 6 | col 7 | col 8 | col 9 | col 10 |
col 1 | col 2 | col 3 | col 4 | col 5 | col 6 | col 7 | col 8 | col 9 | col 10 |
col 1 | col 2 | col 3 | col 4 | col 5 | col 6 | col 7 | col 8 | col 9 | col 10 |
This is inline code
. This is a variable. This is an in-line code variable
.
Here’s a configuration file with a label:
server {
listen 80 default_server;
. . .
}
Examples can have line numbers, and every code block has a ‘Copy’ button to copy just the code:
- const test = 'hello';
- const other = 'world';
- console.log(test, other);
Here’s output from a command with a secondary label:
OutputCould not connect to Redis at 127.0.0.1:6379: Connection refused
This is a non-root user command example:
- sudo apt-get update
- sudo apt-get install python3
This is a root command example:
- adduser sammy
- shutdown
This is a custom prefix command example:
- FLUSH PRIVILEGES;
- SELECT * FROM articles;
A custom prefix can contain a space by using \s
:
- FLUSH PRIVILEGES;
- SELECT * FROM articles;
Indicate where commands are being run with environments:
- ssh root@server_ip
- echo "Secondary server"
- echo "Tertiary server"
- echo "Quaternary server"
- echo "Quinary server"
And all of these can be combined together, with a language for syntax highlighting as well as a line prefix (line numbers, command, custom prefix, etc.), and even an environment and label:
- <html>
- <body>
- <head>
- <title>My Title</title>
- </head>
- <body>
- . . .
- </body>
- </html>
Here is a note, a warning, some info and a draft note:
Note: Use this for notes on a publication.
Warning: Use this to warn users.
Info: Use this for product information.
Draft: Use this for notes in a draft publication.
A callout can also be given a label, which supports inline markdown as well:
Labels support inline markdown
Note: Use this for notes on a publication.
You can also mention users by username:
Embedding a YouTube video (id, height, width):
Embedding DNS record lookups (hostname, record types…):
Demonstrating how glob matching works (pattern, tests…):
Glob embeds can also be written as multiple lines if needed:
Embedding a CodePen example (username, pen ID, flags…):
See the Pen vwPzeX by MattCowley (@MattCowley) on CodePen.
Setting a custom height for the CodePen:
See the Pen vwPzeX by MattCowley (@MattCowley) on CodePen.
Enabling dark mode on a CodePen embed:
See the Pen vwPzeX by MattCowley (@MattCowley) on CodePen.
Setting the CodePen embed to only run when clicked:
See the Pen vwPzeX by MattCowley (@MattCowley) on CodePen.
Changing the default table of a CodePen embed:
See the Pen vwPzeX by MattCowley (@MattCowley) on CodePen.
Making the CodePen editable by the user (requires a Pro CodePen account):
See the Pen Yxzjdz by chriscoyier (@chriscoyier) on CodePen.
Combining different CodePen embed flags together is also supported:
See the Pen vwPzeX by MattCowley (@MattCowley) on CodePen.
Embedding a terminal recording from Asciinema:
Setting a custom number of cols and rows for the Asciinema terminal:
Certain features of our Markdown engine are designed specifically for our tutorials and are locked behind additional flags.
<p style=‘color: red;’>Raw HTML is supported with the html
flag.</p>
[rsvp_button 1234 “Marketo RSVP buttons are behind the rsvp_button
flag”]
[terminal ubuntu:focal Terminals are behind the terminal
flag]
Please refer to our writing guidelines for more detailed explanations on our style and formatting.