This page is based on the Mastering Markdown guide at GitHub.
What is Markdown?
Markdown is a lightweight and easy-to-use syntax for styling all forms of writing on the Jutge.org platform. You control the display of the document; formatting words as bold or italic, adding images, creating lists, and placing chunks of source code are just a few of the things we can do with Markdown.
Examples
Text
It's very easy to make some words **bold** and other words *italic* with Markdown. You can even [link to Google!](http://google.com)It's very easy to make some words bold and other words italic with Markdown. You can even link to Google!
Lists
Sometimes you want numbered lists:
1. One
2. Two
3. Three
Sometimes you want bullet points:
* Start a line with a star
* Profit!Sometimes you want numbered lists:
- One
- Two
- Three
Sometimes you want bullet points:
- Start a line with a star
- Profit!
Headers
# This is an <h1> tag
## This is an <h2> tag
###### This is an <h6> tagThis is an h1 tag
This is an h2 tag
This is an h6 tag
Source code
```
for (int i = 0; i < 10; i++) {
cout << i << endl;
}
```for (int i = 0; i < 10; i++) {
cout << i << endl;
}Syntax guide
- Headers: use
#for h1,##for h2, and so on. - Emphasis:
*italic*or_italic_,**bold**or__bold__. - Lists: unordered with
*or-; ordered with numbers. - Links:
[text](url). - Images:
. - Blockquotes: lines starting with
>. - Inline code: wrap with backticks.
- Code blocks: fenced with triple backticks.
- Tables: pipe-separated rows with a header separator line.
- Strikethrough:
~~text~~.