Components

Typography

Headings

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraph

Paragraphs consist of blocks of left-aligned text with no markup indicating any other body element. Blank lines separate paragraphs from each other and from other body elements.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Anchor

Anchor

Strong, Emphasis

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.

‘’Lorem ipsum’’ dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.

Table

Header row, column 1 (header rows optional) Header 2 Header 3 Header 4
body row 1, column 1 column 2 column 3 column 4
body row 2 ... ...  
body row 3 ... ...  

List

Unordered list

  • Unordered list
  • Unordered list
  • Unordered list

Ordered list

  1. Ordered list
  2. Ordered list
  3. Ordered list

Definition Lists

term 1
Definition 1.
term 2
Definition 2, paragraph 1. Definition 2, paragraph 2.
term 3 : classifier
Definition 3.
term 4 : classifier one : classifier two
Definition 4.

Images

There are two image directives: “image” and “figure”.

image

An “image” is a simple picture.

The URI for the image source file is specified in the directive argument. As with hyperlink targets, the image URI may begin on the same line as the explicit markup start and target name, or it may begin in an indented text block immediately following, with no intervening blank lines. If there are multiple lines in the link block, they are stripped of leading and trailing whitespace and joined together.

figure

A “figure” consists of image data (including image options), an optional caption (a single paragraph), and an optional legend (arbitrary body elements). For page-based output media, figures might float to a different position if this helps the page layout.

Pre, Code

import sys

def fact(x):
    if x == 0:
        return 1
    else:
        return x * fact(x-1)

Admonitions

Admonitions are specially marked “topics” that can appear anywhere an ordinary body element can. They contain arbitrary body elements.

attention

Attention

This is sample of “Attention” admonition directive.

caution

Caution

This is sample of “Caution” admonition directive.

danger

Danger

This is sample of “Danger” admonition directive.

error

Error

This is sample of “Error” admonition directive.

hint

Error

This is sample of “Hint” admonition directive.

important

Important

This is sample of “Important” admonition directive.

note

Note

This is sample of “Note” admonition directive.

tip

Tip

This is sample of “Tip” admonition directive.

warning

Warning

This is sample of “Warning” admonition directive.