Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Latest commit

 

History

History
168 lines (107 loc) · 2.4 KB

rst.rst

File metadata and controls

168 lines (107 loc) · 2.4 KB

ReStructured Text Examples

Basic Stuff

Emphasis

This word is italicized.

Strong emphasis

This word is bold.

Code inline

Call the function_name function.

Code blocks

Look at this output:

$ ls /usr/
bin        lib        libexec

Look at this code:

def fib(n):
    if n <= 2:
        return 1
    else:
        return fib(n-1) + fib(n-2)

Blockquotes

Lincoln said:

Four-score and seven years ago, our fathers brought forth on this continent a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.

Lists

Numbered

  1. First ordered list item
  2. Another item
  3. Use hash marks for numbers

Bullets

  • First unordered list item
  • Another item
  • And another item

Nested

  1. First outer
    • First inner
    • Second inner
  2. Second outer
  3. Third outer

Links

URLs

URLs make links: http://python.org.

Inline

Inline link for brevity.

Indirect

Indirect link for readability.

Headers

Headers

First Header

Second Header

Third Header

Fourth Header

Images

Images

Image of Xsy

Notes etc

Notes

Note

This is the text of a note.

Footnotes

An example of footnote [1].

[1]It's similar to hyperlink syntax.

Warnings

Warning

This is the text of a warning.