Catalog / reStructuredText Cheat Sheet
reStructuredText Cheat Sheet
A quick reference for reStructuredText (reST) markup, covering common elements for creating structured documents.
Basic Syntax
Paragraphs and Text Formatting
Paragraphs are separated by blank lines. Example:
|
Emphasis (italics) Example:
|
Strong emphasis (bold) Example:
|
Example:
|
Example:
|
References Example:
|
Lists
Bulleted lists:
|
Numbered lists:
|
Nested lists:
|
Definition lists:
|
Headings
Headings are created by underlining (or overlining and underlining) with punctuation characters. Example:
|
Note: The length of the underline must be at least the length of the heading text. |
Links and References
Internal Links
Internal links allow you to navigate to different parts of the same document. Syntax:
|
The |
External Links
External links point to resources outside the current document. Syntax:
Example:
|
Alternatively, using reference names:
|
Footnotes
Footnotes add explanatory notes to your document. Syntax:
|
Directives
Image Directive
The Syntax:
|
Options like |
Code Directive
The Syntax:
|
Specify the language after the directive (e.g., |
Admonitions
Admonitions are used to highlight important information. Example:
|
Tables
Grid Tables
Grid tables are created using a grid of characters. Example:
|
Simple Tables
Simple tables are easier to read and write for basic tabular data. Example:
|
CSV Tables
CSV tables allow you to include tabular data from a CSV file. Syntax:
|
Use the |