Headings

Explicit and Implicit references.

[Explicit](#attr) and [Implicit][Attributes] references.

Code blocks

Indented code blocks

if (a > 3) {
    moveShip(5 * gravity, DOWN);

}

Fenced code blocks

1
2
3
4
5
6
7
int main() {
if (1 <= 2) {
return 0;
} else {
return 1;
}
}

Use Hexo’s inline tag plugin codeblock instead of pandoc extension fenced_code_attributes.

ahaLink to Bing
100
101
102
103
104
105
106
107
int main() {
int argc;
if (true) {
return 0;
} else {
return 1;
}
}
1
2
{% code aha lang:cpp http://bing.com "Link to Bing" mark:100,103-104,105 first_line:100 %}
{% endcode %}

Line blocks

The Right Honorable Most Venerable and Righteous Samuel L. Constable, Jr.
200 Main St.
Berkeley, CA 94718

Lists

Bullet list

  • here is my first list item.
  • and my second.
  • here is my second list item.
* here is my first
list item.

* and my second.

<!-- to end a list, add a HTML comment like this -->

* here is my second list item.

Ordered lists

  1. Arabic numerals
  2. second.
  1. Roman numerals
  2. second.
  1. Lowercase letters
  2. second.
  1. Uppercase letters need two spaces.
  2. second.
  1. Parentheses enclosed uppercase letters
  2. second.
  1. Right parentheses uppercase letters
  2. second.
1. Arabic numerals
#. second.
i. Roman numerals
#. second.
a. Lowercase letters
#. second.
A.  Uppercase letters need two spaces.
#.  second.
(A) Parentheses enclosed uppercase letters
(#) second.
A) Right parentheses uppercase letters
#) second.

Task lists

Definition lists

Term 1

Definition 1

Term 2 with inline markup

Definition 2

{ some code, part of Definition 2 }

Example lists

  1. My first example will be numbered (1).

some title…

some text…

  1. My second example will be numbered (2).
(@)  My first example will be numbered (1).


#### some title...
some text...

(@)  My second example will be numbered (2).

Tables

Sample grid table.
Fruit Price Advantages
Bananas $1.34
  • built-in wrapper
  • bright color
Oranges $2.10
  • cures scurvy
  • tasty
Tic-Tac-Toe
x o
o x x
x o
Sample pipe table.
Right Left Default Center
12 12 12 12
123 123 123 123
1 1 1 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
: Sample grid table.

+---------------+---------------+--------------------+
| Fruit | Price | Advantages |
+===============+===============+====================+
| Bananas | $1.34 | - built-in wrapper |
| | | - bright color |
+---------------+---------------+--------------------+
| Oranges | $2.10 | - cures scurvy |
| | | - tasty |
+---------------+---------------+--------------------+

: Tic-Tac-Toe

+---+---+---+
| x | o | |
+---+---+---+
| o | x | x |
+---+---+---+
| x | | o |
+---+---+---+

: Sample pipe table.

| Right | Left | Default | Center |
|------:|:-----|---------|:------:|
| 12 | 12 | 12 | 12 |
| 123 | 123 | 123 | 123 |
| 1 | 1 | 1 | 1 |

Formatting

This text is emphasized with underscores, and this is emphasized with asterisks.

This is strong emphasis and with underscores.

feasible, not feasable

This is deleted text.

H2O is a liquid. 210 is 1024.

Marked text

underline

This text is _emphasized with underscores_, and this
is *emphasized with asterisks*.

This is **strong emphasis** and __with underscores__.

feas*ible*, not feas*able*

This ~~is deleted text.~~

H~2~O is a liquid. 2^10^ is 1024.

==Marked text==

[underline]{.underline}

Verbatim

int main() `int main()`{.hljs .cpp}

To write ```, use:

```` ``` ````

LaTeX macros

\(\langle a, b, c \rangle\)

\newcommand{\tuple}[1]{\langle #1 \rangle}
$\tuple{a, b, c}$

https://google.com

<https://google.com>

Link1 Link2 Link3

[Link1][my label 1] [Link2][my label 2] [Link3][My LaBeL 3]

[my label 1]: https://fsf.org
"The Free Software Foundation"
[my label 2]: <https://fsf.org> "The Free Software Foundation"
[my label 3]: https://fsf.org (The Free Software Foundation)

Images

Image: image

Inline image:

Image: ![image](/img/butterfly-icon.png){height=150px}

Inline image: {% inlineImg /img/butterfly-icon.png 150px %}

Divs and spans

This is a warning.

This is a warning within a warning.

This is some text

Foot notes

Explicit and Implicit references.

Here is a footnote reference,1 and another.2

Here is an inline note.3

1
2
3
4
5
6
7
8
9
10
11
12
Here is a footnote reference,[^1] and another.[^longnote]

[^1]: Here is the footnote.

[^longnote]: Here's one with multiple blocks.

Subsequent paragraphs are indented to show that they
belong to the previous footnote.

...

Here is an inline note.^[Inline notes are ...]

  1. Here is the footnote.↩︎

  2. Here’s one with multiple blocks.

    Subsequent paragraphs are indented to show that they belong to the previous footnote.

    { some.code }

    The whole paragraph can be indented, or just the first line. In this way, multi-paragraph footnotes work like multi-paragraph list items.↩︎

  3. Inline notes are easier to write, since you don’t have to pick an identifier and move down to type the note.↩︎