Skip to main content

reStructuredText Demo

This will demonstrate the current Nikola theme with common markup. It is a better perspective than the current example dominated by an image.

Dedication

To Nikola theme builders everywhere.

Inline Markup

Here is a collection of inlike markup: emphasis, strong emphasis, interpreted text, inline literals, standalone hyperlinks http://getnikola.com/quickref.html, footnotes 1, and implicit hyperlink targets Highlighting.

1

There are several types of footnotes including auto footnotes [#]_ and auto-symbol footnotes [*]_

Highlighting

1
2
3
4
5
6
7
from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello_world():
    """A simple hello world app."""
    return 'Hello, World!'

Body Elements

Clean code:

Clear to understand and modify, uses meaningful names, has minimal dependencies, is easy to test, and it works correctly.


Inputs

Output

A

B

A xor B

False

False

False

True

False

True

False

True

True

True

True

False

reStructured Directives

Note

Table of contents should be at the top of the post. However, placing the marking there interferes with TEASER_END.

Important

In addition to note and important, the following admonition directives have been implemented: attention, caution, warning, danger, error, hint, note, and tip.