Lookup for formatting syntax and its rendered result. For a complete article file and publishing steps, use Create a post. To insert a content index, use Add a table of contents inside an article.
Markdown notation
Markdown represents headings, links, lists and other formatting in plain text. The specimens below pair source notation with rendered output. External syntax reference: Markdown Guide.
Examples use the sample configuration’s GFM parser. Some extensions in the
kramdown reference require kramdown.input: Kramdown rather than GFM. Check
the generated page when changing parsers.
Markdown cheatsheet
Text can be **bold**, _italic_ or ~~strikethrough~~.
Text can be bold, italic or strikethrough.
[Link to another page](./01-install).
There should be whitespace between this paragraph
and this paragraph.
There should be whitespace between this paragraph
and this paragraph.
# Header 1
## Header 2
### Header 3
#### Header 4
##### Header 5
###### Header 6
Header 1
Header 2
Header 3
Header 4
Header 5
Header 6
> This is a blockquote following a header.
>
> When something is important enough, you do it even if the odds are not in your favor.
This is a blockquote.
When something is important enough, you do it even if the odds are not in your favor.
```js
// JavaScript code with syntax highlighting.
var fun = function lang(l) {
dateformat.i18n = require('./lang/' + l)
return true;
}
```
```ruby
# Ruby code with syntax highlighting
GitHubPages::Dependencies.gems.each do |gem, version|
s.add_dependency(gem, "= #{version}")
end
```
```html
<!--HTML code syntax highlighter-->
<!DOCTYPE html>
<html>
<body>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
```
// JavaScript code with syntax highlighting.
var fun = function lang(l) {
dateformat.i18n = require('./lang/' + l)
return true;
}
# Ruby code with syntax highlighting
GitHubPages::Dependencies.gems.each do |gem, version|
s.add_dependency(gem, "= #{version}")
end
<!--HTML code syntax highlighter-->
<!DOCTYPE html>
<html>
<body>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
* First unordered item.
* Second unordered item.
* Third unordered item.
A two-level ordered list:
1. First ordered item.
2. Second ordered item.
* First unordered sub-item.
* Second unordered sub-item.
12. Subsequent items are numbered automatically, regardless of their source number.
4. Another ordered item.
You can indent a paragraph to keep it inside a list item. Keep the blank
line above and the indentation on every line.
Unordered lists can use different markers:
* Asterisks
- Minuses
- A nested item
1. First ordered sub-item
2. Second ordered sub-item
+ Pluses
And a task list:
- [x] This is a complete item
- [ ] This is an incomplete item
- First unordered item.
- Second unordered item.
- Third unordered item.
A two-level ordered list:
- First ordered item.
- Second ordered item.
- First unordered sub-item.
- Second unordered sub-item.
- Subsequent items are numbered automatically, regardless of their source number.
-
Another ordered item.
You can indent a paragraph to keep it inside a list item. Keep the blank line above and the indentation on every line.
Unordered lists can use different markers:
- Asterisks
- Minuses
- A nested item
- First ordered sub-item
- Second ordered sub-item
- Pluses
- A nested item
And a task list:
- This is a complete item
- This is an incomplete item
Use an emoji here: 👍🏻⭐️🏆
Use an emoji here: 👍🏻⭐️🏆
To quickly turn a URL or email address into a link, enclose it in angle brackets.
<https://www.markdownguide.org>
<fake@example.com>
To quickly turn a URL or email address into a link, enclose it in angle brackets.
https://www.markdownguide.org fake@example.com
Here's a simple footnote,[^1] and here's a longer one.[^bignote]
[^1]: This is the first footnote.
[^bignote]: Here's one with multiple paragraphs and code.
Indent paragraphs to include them in the footnote.
`{ my code }`
Add as many paragraphs as you like.
Here’s a simple footnote,1 and here’s a longer one.2
A table
| **id** | **name** | **age** | **gender** |
|:-------|:--------:|--------:|:----------:|
| Left | Center | Right | M |
| 2 | Oliver | 25 | M |
| 3 | Shayna | 18 | F |
| 4 | Fechin | 18 | M |
A table
| id | name | age | gender |
|---|---|---|---|
| Left | Center | Right | M |
| 2 | Oliver | 25 | M |
| 3 | Shayna | 18 | F |
| 4 | Fechin | 18 | M |
There's a horizontal rule below this.
* * *
Another
---
There’s a horizontal rule below this.
Another
**Small image**

**Large image**

Small image
![]()
Large image

Definition lists can be used with HTML syntax.
<dl>
<dt>Name</dt>
<dd>Godzilla</dd>
<dt>Born</dt>
<dd>1952</dd>
<dt>Birthplace</dt>
<dd>Japan</dd>
<dt>Color</dt>
<dd>Green</dd>
</dl>
- Name
- Godzilla
- Born
- 1952
- Birthplace
- Japan
- Color
- Green
Long, single-line code blocks should not wrap. They should horizontally scroll if they are too long. This line should be long enough to demonstrate this.
kramdown extensions
kramdown is Jekyll’s default Markdown processor. Extension support depends on the configured input parser; the examples include attributes, footnotes and content indexes. Full syntax: kramdown reference.
The first paragraph.
Another paragraph
This is a paragraph
which contains a hard line break.
First level header
==================
Second level header
-------------------
# H1 header
## H2 header
### H3 header
#### H4 header
##### H5 header
###### H6 header
The first paragraph.
Another paragraph
This is a paragraph
which contains a hard line break.
First level header
Second level header
H1 header
H2 header
H3 header
H4 header
H5 header
H6 header
Table of contents syntax
The theme TOC is configured separately. show_toc, h_min and h_max
control the layout’s automatic TOC. The specimens below use kramdown’s {:toc}
for a content index. Procedure: Add a table of contents inside an article.
Configuration mapping specimen: kramdown.toc_levels selects heading levels
for content indexes site-wide.
kramdown:
toc_levels: 2..6
Heading exclusion specimen: .no_toc excludes a heading from both the content
index and the theme’s automatic TOC.
## This header would be ignored on the toc.
{:.no_toc}
This header would be ignored on the toc.
Content-index marker specimen: the list item and attribute occupy separate
lines. The placeholder is replaced by heading links; 1. selects a numbered
list instead of bullets. The marker sets the index position; eligible headings
before the marker are included too.
* This line is needed, but won't appear. Replace '*' with '1' to create a numbered list.
{:toc}
- Markdown notation
- Markdown cheatsheet
- Header 2
- kramdown extensions
- Second level header
- H2 header
- Table of contents syntax
- Headers work too
> A sample blockquote.
>
> >Nested blockquotes are
> >also possible.
>
> ## Headers work too
> This is the outer quote again.
term
: definition
: another definition
another term
and another term
: and a definition for the term
A sample blockquote.
Nested blockquotes are also possible.
Headers work too
This is the outer quote again.
- term
- definition
- another definition
- another term
- and another term
- and a definition for the term
| Header1 | Header2 | Header3 |
|:--------|:-------:|--------:|
| cell1 | cell2 | cell3 |
| cell4 | cell5 | cell6 |
|----
| cell1 | cell2 | cell3 |
| cell4 | cell5 | cell6 |
|=====
| Foot1 | Foot2 | Foot3
{: rules="groups"}
| Header1 | Header2 | Header3 |
|---|---|---|
| cell1 | cell2 | cell3 |
| cell4 | cell5 | cell6 |
| cell1 | cell2 | cell3 |
| cell4 | cell5 | cell6 |
| Foot1 | Foot2 | Foot3 |
This is a paragraph
{::comment}
This is a comment which is
completely ignored.
{:/comment}
... paragraph continues here.
Extensions can also be used
inline {::nomarkdown}**see**{:/}!
This is a paragraph … paragraph continues here.
Extensions can also be used inline **see**!
This is a paragraph … paragraph continues here.
Extensions can also be used inline **see**! This is a paragraph … paragraph continues here.
Extensions can also be used inline see!
A [link](https://kramdown.gettalong.org "hp")
to the homepage.
A simple info alert **check it out!**
{: #myid .alert .alert-info .p-3 .mx-2 .mb-3}
This is a text with a
footnote[^1].
[^1]: And here is the definition.
This is an HTML
example.
*[HTML]: Hyper Text Markup Language
This is **Chulapa**{:.chulapa} *red*{: style="color: red"}.
A link to the homepage.
A simple info alert check it out!
This is a text with a footnote1.
This is an HTML example.
This is Chulapa red.
<div markdown="1">This is the first part of a para,
which is continued here.
- List
- List **bold**
</div>
This is the first part of a para, which is continued here.
- List
- List bold