rst.tpl
84 lines
| 1.5 KiB
| application/vnd.groove-tool-template
|
SmartyLexer
Matthias BUSSONNIER
|
r9642 | {%- extends 'display_priority.tpl' -%} | ||
Matthias BUSSONNIER
|
r9641 | |||
Matthew Brett
|
r12117 | {% block in_prompt %} | ||
Matthias BUSSONNIER
|
r9641 | {% endblock in_prompt %} | ||
damianavila
|
r11770 | {% block output_prompt %} | ||
{% endblock output_prompt %} | ||||
Matthias BUSSONNIER
|
r9641 | |||
damianavila
|
r11770 | {% block input %} | ||
MinRK
|
r12468 | {%- if not cell.input.isspace() -%} | ||
.. code:: python | ||||
damianavila
|
r11770 | {{ cell.input | indent}} | ||
MinRK
|
r12468 | {%- endif -%} | ||
Matthias BUSSONNIER
|
r9642 | {% endblock input %} | ||
Matthias BUSSONNIER
|
r9641 | |||
damianavila
|
r11770 | {% block pyerr %} | ||
:: | ||||
MinRK
|
r12468 | |||
Matthias BUSSONNIER
|
r9643 | {{ super() }} | ||
Matthias BUSSONNIER
|
r9641 | {% endblock pyerr %} | ||
{% block traceback_line %} | ||||
damianavila
|
r11770 | {{ line | indent | strip_ansi }} | ||
{% endblock traceback_line %} | ||||
Matthias BUSSONNIER
|
r9641 | |||
{% block pyout %} | ||||
damianavila
|
r11770 | {% block data_priority scoped %} | ||
{{ super() }} | ||||
{% endblock %} | ||||
Matthias BUSSONNIER
|
r9641 | {% endblock pyout %} | ||
{% block stream %} | ||||
.. parsed-literal:: | ||||
damianavila
|
r11770 | {{ output.text | indent }} | ||
Matthias BUSSONNIER
|
r9641 | {% endblock stream %} | ||
damianavila
|
r11770 | {% block data_svg %} | ||
.. image:: {{ output.svg_filename }} | ||||
Matthias BUSSONNIER
|
r9642 | {% endblock data_svg %} | ||
Matthias BUSSONNIER
|
r9641 | |||
damianavila
|
r11770 | {% block data_png %} | ||
.. image:: {{ output.png_filename }} | ||||
Matthias BUSSONNIER
|
r9642 | {% endblock data_png %} | ||
damianavila
|
r11770 | {% block data_jpg %} | ||
MinRK
|
r12468 | .. image:: {{ output.jpeg_filename }} | ||
Matthias BUSSONNIER
|
r9643 | {% endblock data_jpg %} | ||
damianavila
|
r11770 | {% block data_latex %} | ||
.. math:: | ||||
MinRK
|
r12468 | |||
{{ output.latex | strip_dollars | indent }} | ||||
Matthias BUSSONNIER
|
r9643 | {% endblock data_latex %} | ||
damianavila
|
r11770 | {% block data_text scoped %} | ||
.. parsed-literal:: | ||||
MinRK
|
r12468 | |||
damianavila
|
r11770 | {{ output.text | indent }} | ||
Matthias BUSSONNIER
|
r9642 | {% endblock data_text %} | ||
MinRK
|
r12468 | {% block data_html scoped %} | ||
.. raw:: html | ||||
{{ output.html | indent }} | ||||
{% endblock data_html %} | ||||
damianavila
|
r11770 | {% block markdowncell scoped %} | ||
{{ cell.source | markdown2rst }} | ||||
Matthias BUSSONNIER
|
r9641 | {% endblock markdowncell %} | ||
{% block headingcell scoped %} | ||||
MinRK
|
r11317 | {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2rst }} | ||
Matthias BUSSONNIER
|
r9641 | {% endblock headingcell %} | ||
damianavila
|
r11770 | {% block rawcell scoped %} | ||
{{ cell.source }} | ||||
Matthias BUSSONNIER
|
r9641 | {% endblock rawcell %} | ||
{% block unknowncell scoped %} | ||||
unknown type {{cell.type}} | ||||
Matthew Brett
|
r12117 | {% endblock unknowncell %} | ||