templatetags.django_docutils¶
Django template tag and filter for docutils (rendering reStructuredText as HTML).
Bases:
NodeImplement the actions of the rst tag.
Bases:
TemplateSyntaxErrorInvalid arguments to rst django template tag.
Django template tag to render reStructuredText as HTML.
Supports arguments, see below.
Examples
{% rst content %}
{% rst content toc_only=True %}
{% rst content show_title=False %}
{% rst %} **Hello world** {% endrst %}
Render table of contents:
{% rst toc_only=True %} Welcome to my site! =================== My header --------- Some text Additional information ---------------------- Thank you {% endrst %}
- Parameters:
parser (Parser)
token (Token)
- Return type:
Django template filter to render reStructuredText (rst) as HTML.